# GHSA-wjfc-pgfp-pv9c: Improper Input Validation in nyholm/psr7

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-04-21T20:27:30.000Z
- Modified: 2024-11-29T05:28:02.962Z
- Weaknesses: CWE-436

## Description

### Impact

Improper 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`.

### Patches

The issue is patched in 1.6.1.

### Workarounds

There are no known workarounds.

### References

* https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4

(As written by GitHub Advisory Database.)

## Affected

- nyholm/psr7 (Packagist): before 1.6.1

## References

- <https://github.com/Nyholm/psr7/security/advisories/GHSA-wjfc-pgfp-pv9c> (web)
- <https://github.com/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96> (web)
- <https://github.com/guzzle/psr7/security/advisories/GHSA-wxmh-65f7-jcvw> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-29197> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/nyholm/psr7/2023-04-17.yaml> (web)
- <https://github.com/Nyholm/psr7> (package)

## Sources

- GitHub Advisory Database: [GHSA-wjfc-pgfp-pv9c](https://github.com/advisories/GHSA-wjfc-pgfp-pv9c), CC-BY-4.0, modified 2024-11-29

---

Page: https://cve.day/GHSA-wjfc-pgfp-pv9c · Whole record: https://cve.day/GHSA-wjfc-pgfp-pv9c.json · Rebuilt by cve.day 2026-11-25T22:56:33.252Z
