Skip to content

Improper Input Validation in nyholm/psr7

Moderate severity GitHub Reviewed Published Apr 17, 2023 in Nyholm/psr7 • Updated Apr 24, 2023

Package

composer nyholm/psr7 (Composer)

Affected versions

< 1.6.1

Patched versions

1.6.1

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

References

@Nyholm Nyholm published to Nyholm/psr7 Apr 17, 2023
Published to the GitHub Advisory Database Apr 21, 2023
Reviewed Apr 21, 2023
Last updated Apr 24, 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-wjfc-pgfp-pv9c

Source code

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