Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
☕
☕ Maven📦 npm
Not in CISA KEV
MEDIUM severity

CVE-2022-25881 — http-cache-semantics

MEDIUMFix: kornelski/http-cache-semantics@560b2d8

CVE-2022-25881 is a medium-severity (CVSS 5.3) CWE-1333 vulnerability in org.webjars.npm:http-cache-semantics. 2 public exploit references exist, so weaponization risk is real. A fix is available for org.webjars.npm:http-cache-semantics — see the affected versions and patch details below.

http-cache-semantics vulnerable to Regular Expression Denial of Service

Also known asGHSA-rc47-6667-2j5j
Published
Updated
Affected
2 pkgs
Patched
2 / 2
Exploits
2 known
Exploitation data as of Oct 22, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

Proof-of-concept exploit code exists

  • CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
  • A successful exploit gives an attacker total control of the affected component, not partial access.

Exploitation and automatability from CISA’s SSVC triage for CVE-2022-25881.

EPSS Exploitation Probability

via FIRST.org ↗
1.6%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs76th percentile — riskier than 76% of all scored CVEsHighest risk
0.00%0.70%1.41%2.11%0.2%1.6%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2022-25881 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 394,803 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

2 pkgs affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.

613other npm packages depend on this — each one inherits the vulnerability until it's patched upstream
http-cache-semanticsnpm
31.0Mdownloads / week

Description

http-cache semantics contains an Inefficient Regular Expression Complexity , leading to Denial of Service. 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.

Affected Packages

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
☕Mavenorg.webjars.npm:http-cache-semanticsall versions4.1.1org.webjars.npm:http-cache-semantics:4.1.1
📦npmhttp-cache-semanticsall versions4.1.1npm install http-cache-semantics@4.1.1

Affected Products

1 product · 1 configurations
Application
http-cache-semanticshttp-cache-semantics_project
< 4.1.1
range
Exploits & PoCs
2

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.webjars.npm:http-cache-semantics, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update org.webjars.npm:http-cache-semantics to 4.1.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-25881 is resolved across your whole dependency graph.

  3. Workarounds

    Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate

The impact of a succesfull exploiation of this vulnerability will only lead to a denial of service of the system,furthermore the exploitation will require an attacker to specifically craft a regular expression patterns in request headers (i.e. nontrivial input) that trigger pathological regex behavior but since most…

ProductFixed inAdvisory
Red Hat Enterprise Linux 8nodejs:16-8070020230314140722.bd1311edRHSA-2023:1582
Red Hat Enterprise Linux 8nodejs:18-8070020230322080930.bd1311edRHSA-2023:1583
Red Hat Enterprise Linux 8nodejs:14-8070020230306170042.bd1311edRHSA-2023:1743
Red Hat Enterprise Linux 8.4 Extended Update Supportnodejs:14-8040020230306170312.522a0ee4RHSA-2023:1533
Red Hat Enterprise Linux 8.6 Extended Update Supportnodejs:14-8060020230306170237.ad008a3aRHSA-2023:1742
Red Hat Enterprise Linux 9nodejs:18-9020020230327152102.rhel9RHSA-2023:2654
Red Hat Enterprise Linux 9nodejs-1:16.19.1-1.el9_2RHSA-2023:2655
Red Hat Enterprise Linux 9.0 Extended Update Supportnodejs-1:16.20.2-1.el9_0RHSA-2023:5533

Frequently Asked Questions

http-cache semantics contains an Inefficient Regular Expression Complexity , leading to Denial of Service. 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.
O3 Security · Impact-Aware SCA

Is CVE-2022-25881 in your dependencies?

Find it across Maven, npm, including transitive dependencies.

CVE-2022-25881: http-cache DoS — Fixed in 4.1.1