Skip to main content
Public proof of conceptFix available

CVE-2022-25881

A public proof of concept exists; no exploitation attested.

  • Published2023-01-31
  • Fixed in4.1.1
  • WeaknessCWE-1333

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2023-01-3105:15CVE publishedNVD

Versions per branch

NVD · OSV
Http-cache-semantics project http-cache-semantics
BranchAffectedFixed in
4.1< 4.1.14.1.1

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA2 products

As snyk, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • http-cache-semantics
    Affected
    • < 4.1.1fixed in 4.1.1semver
  • org.webjars.npm:http-cache-semantics
    Affected
    • < 4.1.1fixed in 4.1.1semver

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2023-06-22

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • @rootio/http-cache-semanticsRoot:npmall versions · fixed in 3.8.1-root.io.1
  • @rootio/http-cache-semanticsRoot:npmall versions · fixed in 3.8.1-root.io.2
  • @rootio/http-cache-semanticsRoot:npmall versions · fixed in 3.8.1-root.io.3
  • @rootio/http-cache-semanticsRoot:npmall versions · fixed in 4.1.0-root.io.1
  • @rootio/http-cache-semanticsRoot:npmall versions · fixed in 4.1.1-root.io.1
  • ghost-cliMinimOSall versions · fixed in 1.32.0-r0
  • http-cache-semanticsRoot:npmall versions · fixed in 3.8.1-aikido.2
  • http-cache-semanticsRoot:npmall versions · fixed in 3.8.1-aikido.3

123 more package ranges on OSV.dev

Vendor advisories

  • CVE-2022-25881 Red Hat Product Security290 products fixed · 60 known affected

    http-cache-semantics: Regular Expression Denial of Service (ReDoS) vulnerability

    rh-dotnet60-aspnetcore-runtime-6.0 as a component of .NET 6.0 on Red Hat Enterprise Linux · rh-dotnet60-aspnetcore-targeting-pack-6.0 as a component of .NET 6.0 on Red Hat Enterprise Linux · rh-dotnet60-dotnet as a component of .NET 6.0 on Red Hat Enterprise Linux · +57 more

  • RHSA-2023:5533 Red Hat Product Security34 products fixed

    Red Hat Security Advisory: nodejs security, bug fix, and enhancement update

  • RHSA-2023:3815 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Service Registry (container images) release and security update [2.4.3 GA]

  • RHSA-2023:2655 Red Hat Product Security34 products fixed

    Red Hat Security Advisory: nodejs and nodejs-nodemon security, bug fix, and enhancement update

  • RHSA-2023:2654 Red Hat Product Security31 products fixed

    Red Hat Security Advisory: nodejs:18 security, bug fix, and enhancement update

  • RHSA-2023:2104 Red Hat Product Security203 products fixed

    Red Hat Security Advisory: Red Hat Advanced Cluster Management 2.5.8 security updates and bug fixes

10 more advisories

Full record on NVD

Fix

  1. Update Http-cache-semantics project http-cache-semantics to 4.1.1
  2. Vendor fix Red Hat Product Security RHSA-2023:5533 · 34 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2023:3815 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  4. Vendor fix Red Hat Product Security RHSA-2023:2104 · 203 productsFor Red Hat Advanced Cluster Management for Kubernetes, see the following documentation, which will be updated shortly for this release, for important instructions about installing this release: https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.5/ht…
  5. Vendor fix Red Hat Product Security RHSA-2023:2098 · 144 productsFor multicluster engine for Kubernetes, see the following documentation for details on how to install the images: https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.5/html/multicluster_engine/installing-while-connected-online
  6. Vendor fix Red Hat Product Security RHSA-2023:2083 · 191 productsFor Red Hat Advanced Cluster Management for Kubernetes, see the following documentation for details on how to install the images: https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.6/html/install/installing#installing-while-connected-online
  7. Vendor fix Red Hat Product Security RHSA-2023:2061 · 152 productsFor multicluster engine for Kubernetes, see the following documentation for details on how to install the images: https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.6/html/multicluster_engine/multicluster_engine_overview#installing-while-connected-on…

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2025-03-27
  • CNACVSS 3.15.3known since 2026-10-23
  • NVDCVSS 3.17.5read 2026-10-23
  • CISA-ADPweakness (CWE)CWE-13332025-03-27
  • CNAweakness (CWE)CWE-1333known since 2026-10-23
  • NVDweakness (CWE)CWE-1333read 2026-10-23
  • FIRST EPSSEPSS score1.6 %2026-11-09
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHIGH2023-02-01

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2023-01-31
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-rc47-6667-2j5j

Frequently asked questions

What is CVE-2022-25881?

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.

Is CVE-2022-25881 actively exploited?

A proof-of-concept exploit exists for CVE-2022-25881, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2022-25881?

CVE-2022-25881 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running http-cache-semantics? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record