# GHSA-9JXR-MWPP-W643: Improper header validation in httpsoft/http-message

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2023-04-21
- Modified: 2024-12-06

## Affected versions

- httpsoft/http-message (Packagist): fixed in 1.0.12

## 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.0.12.

### Workarounds

There are no known workarounds.

### References

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

## References

- https://github.com/guzzle/psr7/security/advisories/GHSA-wxmh-65f7-jcvw
- https://github.com/httpsoft/http-message/security/advisories/GHSA-9jxr-mwpp-w643
- https://nvd.nist.gov/vuln/detail/CVE-2023-29197
- https://github.com/httpsoft/http-message

Page: https://cve.now/GHSA-9JXR-MWPP-W643

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
