{"id":"GHSA-wjfc-pgfp-pv9c","aliases":["GHSA-wjfc-pgfp-pv9c"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Input Validation in nyholm/psr7","summary":"### Impact\n\nImproper header parsing. An attacker could sneak in a newline (`\\n`) into both the header names and values. While the specification states that `\\r\\n\\r\\n` is used to terminate the header list, many servers in the wild will also accept `\\n\\n`.\n\n### Patches\n\nThe issue is patched in 1.6.1.\n\n### Workarounds\n\nThere are no known workarounds.\n\n### References\n\n* https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Impact\n\nImproper header parsing. An attacker could sneak in a newline (`\\n`) into both the header names and values. While the specification states that `\\r\\n\\r\\n` is used to terminate the header list, many servers in the wild will also accept `\\n\\n`.\n\n### Patches\n\nThe issue is patched in 1.6.1.\n\n### Workarounds\n\nThere are no known workarounds.\n\n### References\n\n* https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4","format":"markdown","source":"ghsa"}],"published":"2023-04-21T20:27:30.000Z","modified":"2024-11-29T05:28:02.962Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-436"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.6.1"}],"ecosystem":"Packagist","package":"nyholm/psr7","purl":"pkg:composer/nyholm/psr7","source":"ghsa"}],"references":[{"url":"https://github.com/Nyholm/psr7/security/advisories/GHSA-wjfc-pgfp-pv9c","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/guzzle/psr7/security/advisories/GHSA-wxmh-65f7-jcvw","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29197","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/nyholm/psr7/2023-04-17.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Nyholm/psr7","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wjfc-pgfp-pv9c","url":"https://github.com/advisories/GHSA-wjfc-pgfp-pv9c","licence":"CC-BY-4.0","modified":"2024-11-29T05:28:02.962Z"}],"updatedAt":"2026-11-25T22:56:33.252Z"}