Skip to content

Improper header validation in httpsoft/http-message

Moderate severity GitHub Reviewed Published Apr 17, 2023 in httpsoft/http-message • Updated Apr 21, 2023

Package

composer httpsoft/http-message (Composer)

Affected versions

< 1.0.12

Patched versions

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

References

@devanych devanych published to httpsoft/http-message Apr 17, 2023
Published to the GitHub Advisory Database Apr 21, 2023
Reviewed Apr 21, 2023
Last updated Apr 21, 2023

Severity

Moderate
5.3
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Weaknesses

CVE ID

No known CVE

GHSA ID

GHSA-9jxr-mwpp-w643

Source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.