CVE-2026-48979: PHP Standard Library: HTTP/2 server-side missing content-length validation enables request smuggling
Psl\H2\ServerConnection does not validate that the total bytes received in DATA frames match the content-length header declared in the HEADERS frame, in violation of RFC 9113 §8.1.1.
A malicious client can:
- Send more DATA bytes than declared, smuggling additional content past application-level size limits.
- Send fewer DATA bytes than declared and close the stream early, causing applications that trust the declared length to behave incorrectly.
The vulnerability is only reachable for consumers using Psl\H2\ServerConnection directly to accept untrusted client traffic. The high-level Psl\HTTP\Server is in active development and was not yet released at the time of this advisory; consumers of documented high-level PSL APIs are not affected.
References
- github.com/advisories/GHSA-pw9p-jvrm-f7rm
- github.com/php-standard-library/php-standard-library/releases/tag/6.1.2
- github.com/php-standard-library/php-standard-library/releases/tag/6.2.1
- github.com/php-standard-library/php-standard-library/security/advisories/GHSA-pw9p-jvrm-f7rm
- nvd.nist.gov/vuln/detail/CVE-2026-48979
Code Behaviors & Features
Detect and mitigate CVE-2026-48979 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →