# CVE-2023-30536: Insecure header validation in slim/psr7

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.74%, higher than 55% of CVEs (2026-12-01)
- Published: 2023-04-17T21:17:33.775Z
- Modified: 2026-09-10T03:50:01.161Z
- Also known as: GHSA-q2qj-628g-vhfw
- Weaknesses: CWE-436
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

slim/psr7 is a PSR-7 implementation for use with Slim 4. In versions prior to 1.6.1 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. An attacker that is able to control the header names that are passed to Slilm-Psr7 would be able to intentionally craft invalid messages, possibly causing application errors or invalid HTTP requests being sent out with an PSR-18 HTTP client. The latter might present a denial of service vector if a remote service’s web application firewall bans the application due to the receipt of malformed requests. The issue has been patched in version 1.6.1. There are no known workarounds to this issue. Users are advised to upgrade.

(As written by CVE List.)

## Affected

- slimphp Slim-Psr7: < 1.6.1
- slim/psr7 (Packagist): from 1.6 before 1.6.1; from 1.5 before 1.5.1; before 1.4.1
- slimframework slim_psr-7: before 1.6.1

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`

## References

- <https://github.com/slimphp/Slim-Psr7/security/advisories/GHSA-q2qj-628g-vhfw> (vendor-advisory, web)
- <https://github.com/slimphp/Slim-Psr7/commit/ed1d553225dd190875d8814c47460daed4b550bb> (patch, web)
- <https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4> (technical-description, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-30536> (advisory)
- <https://github.com/slimphp/Slim-Psr7/issues/284#issuecomment-1541328898> (web)
- <https://github.com/slimphp/Slim-Psr7> (package)
- <https://github.com/slimphp/Slim-Psr7/releases/tag/1.4.1> (web)
- <https://github.com/slimphp/Slim-Psr7/releases/tag/1.5.1> (web)
- <https://github.com/slimphp/Slim-Psr7/releases/tag/1.6.1> (web)

## Sources

- CVE List: [CVE-2023-30536](https://www.cve.org/CVERecord?id=CVE-2023-30536), CVE Terms of Use, modified 2025-02-05
- GitHub Advisory Database: [GHSA-q2qj-628g-vhfw](https://github.com/advisories/GHSA-q2qj-628g-vhfw), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-30536](https://nvd.nist.gov/vuln/detail/CVE-2023-30536), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-30536 · Whole record: https://cve.day/CVE-2023-30536.json · Rebuilt by cve.day 2026-11-25T22:58:23.568Z
