logo

GHSA-wjfc-pgfp-pv9c nyholm/psr7

Package

Manager: composer
Name: nyholm/psr7
Vulnerable Version: >=0 <1.6.1

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

EPSS: N/A pctlN/A

Details

Improper Input Validation in nyholm/psr7 ### 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

Metadata

Created: 2023-04-21T20:27:30Z
Modified: 2023-04-21T20:27:30Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/04/GHSA-wjfc-pgfp-pv9c/GHSA-wjfc-pgfp-pv9c.json
CWE IDs: ["CWE-436"]
Alternative ID: N/A
Finding: F184
Auto approve: 1