# CVE-2022-25881: http-cache-semantics vulnerable to Regular Expression Denial of Service

- Severity: Medium 5.3 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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): 1.72%, higher than 78% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-01-31T05:00:01.220Z
- Modified: 2026-09-10T03:49:51.817Z
- Also known as: GHSA-rc47-6667-2j5j
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: snyk

## Description

This affects versions of the package http-cache-semantics before 4.1.1. The issue can be exploited via malicious request header values sent to a server, when that server reads the cache policy from the request using this library.

(As written by CVE List.)

## Affected

- http-cache-semantics: before 4.1.1
- org.webjars.npm:http-cache-semantics: before 4.1.1
- http-cache-semantics (npm): before 4.1.1
- org.webjars.npm:http-cache-semantics (Maven): before 4.1.1
- http-cache-semantics_project http-cache-semantics: before 4.1.1

## Every score

- snyk: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://security.snyk.io/vuln/SNYK-JS-HTTPCACHESEMANTICS-3248783> (exploit, third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3253332> (exploit, third-party-advisory, web)
- <https://github.com/kornelski/http-cache-semantics/blob/master/index.js%23L83> (broken-link, web)
- <https://security.netapp.com/advisory/ntap-20230622-0008/>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25881> (advisory)
- <https://github.com/kornelski/http-cache-semantics/commit/560b2d8ef452bbba20ffed69dc155d63ac757b74> (web)
- <https://github.com/kornelski/http-cache-semantics> (package)
- <https://security.netapp.com/advisory/ntap-20230622-0008> (web)

## Sources

- CVE List: [CVE-2022-25881](https://www.cve.org/CVERecord?id=CVE-2022-25881), CVE Terms of Use, modified 2025-03-27
- GitHub Advisory Database: [GHSA-rc47-6667-2j5j](https://github.com/advisories/GHSA-rc47-6667-2j5j), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2022-25881](https://nvd.nist.gov/vuln/detail/CVE-2022-25881), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-25881 · Whole record: https://cve.day/CVE-2022-25881.json · Rebuilt by cve.day 2026-11-25T22:58:18.441Z
