CVE-2022-25881 json
http-cache-semantics vulnerable to Regular Expression Denial of Service
published 3y ago modified last mo. also GHSA-rc47-6667-2j5j , EUVD-2023-0544
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.6%
- EPSS 1.6% chance of exploitation in 30 days, percentile 76%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm http-cache-semantics 4.1.1
- maven org.webjars.npm:http-cache-semantics 4.1.1
- n/a http-cache-semantics 4.1.1
- n/a org.webjars.npm:http-cache-semantics 4.1.1
- npm RHEL 9 1:9.5.0-1.18.14.2.2.module+el9.2.0.z+18497+a402347c
- nodejs RHEL 9 1:18.14.2-2.module+el9.2.0.z+18497+a402347c
- nodejs-nodemon RHEL 9 2.0.20-2.module+el9.2.0.z+18497+a402347c
- nodejs-full-i18n RHEL 9 1:18.14.2-2.module+el9.2.0.z+18497+a402347c
- nodejs-packaging RHEL 9 2021.06-4.module+el9.1.0+15718+e52ec601
- nodejs-packaging-bundler RHEL 9 2021.06-4.module+el9.1.0+15718+e52ec601
- npm RHEL 8 1:9.5.0-1.18.14.2.2.module+el8.7.0+18445+9493b6ea
- nodejs RHEL 8 1:18.14.2-2.module+el8.7.0+18445+9493b6ea
red hat advisories RHSA-2023:2654RHSA-2023:1583RHSA-2023:1582RHSA-2023:1743RHSA-2023:1742RHSA-2023:1533
- nodejs18 SLE Module for Web and Scripting 15 SP5, SLE Module for Web and Scripting 15 SP4, openSUSE Leap 15.5 +1 more 18.16.1-150400.9.9.1
- nodejs18 SLE Module for Web and Scripting 12 18.16.1-8.9.1
- nodejs16 SLE Module for Web and Scripting 12 16.20.0-8.27.1
- nodejs16 SLE Module for Web and Scripting 15 SP4, openSUSE Leap 15.4 16.20.0-150400.3.18.2
- nodejs16 SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +3 more 16.20.0-150300.7.21.2
- nodejs12 SLES for SAP 15 SP3, SLES for SAP 15 SP2, SLES 15 SP3-LTSS +8 more 12.22.12-150200.4.47.1
- nodejs14 SLES for SAP 15 SP3, SLES for SAP 15 SP2, SLES 15 SP3-LTSS +8 more 14.21.3-150200.15.46.1
- nodejs14 SLE Module for Web and Scripting 12 14.21.3-6.43.1
suse advisories SUSE-SU-2023:2669-1SUSE-SU-2023:2662-1SUSE-SU-2023:1942-1SUSE-SU-2023:1924-1SUSE-SU-2023:1923-1SUSE-SU-2023:1876-1
- nodejs18 openSUSE Tumbleweed 18.16.0-1.1
opensuse advisories openSUSE-SU-2024:12870-1
- npm AlmaLinux 9 1:9.5.0-1.18.14.2.2.module_el9.2.0+29+de583a0b
- nodejs AlmaLinux 9 1:18.14.2-2.module_el9.2.0+29+de583a0b
- nodejs-nodemon AlmaLinux 9 2.0.20-2.module_el9.2.0+29+de583a0b
- nodejs-full-i18n AlmaLinux 9 1:18.14.2-2.module_el9.2.0+29+de583a0b
- nodejs-packaging AlmaLinux 9 2021.06-4.module_el9.1.0+13+d9a595ea
- nodejs-packaging-bundler AlmaLinux 9 2021.06-4.module_el9.1.0+13+d9a595ea
- nodejs AlmaLinux 9 1:16.19.1-1.el9_2
- npm AlmaLinux 9 1:8.19.3-1.16.19.1.1.el9_2
almalinux advisories ALSA-2023:2654ALSA-2023:2655ALSA-2023:1743ALSA-2023:1582ALSA-2023:1583
- nodejs-packaging Rocky Linux 9 2021.06-4.module+el9.7.0+40025+0e0cf6b2
- nodejs-packaging Rocky Linux 9 2021.06-4.module+el9.7.0+40017+f0db1785
- nodejs-packaging Rocky Linux 9 2021.06-4.module+el9.7.0+40018+a011993d
- nodejs-packaging Rocky Linux 9 2021.06-4.module+el9.7.0+40022+9ecc286c
- nodejs Rocky Linux 9 1:16.19.1-1.el9_2
- nodejs-nodemon Rocky Linux 9 2.0.20-3.el9_2
- nodejs Rocky Linux 8 1:14.21.3-1.module+el8.7.0+1183+c2c35f0a
- nodejs-nodemon Rocky Linux 8 2.0.20-3.module+el8.7.0+1178+d52dba78
rocky linux advisories RLSA-2023:2654RLSA-2023:2655RLSA-2023:1743RLSA-2023:1582RLSA-2023:1583
Is CVE-2022-25881 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-25881 updated cvss 7.5
http-cache-semantics: Regular Expression Denial of Service (ReDoS) vulnerability
-
Red Hat .NET 6.0 on Red Hat Enterprise Linux rh-dotnet60-dotnet, rh-dotnet60-dotnet-host, rh-dotnet60-dotnet-sdk-6.0, rh-dotnet60-dotnet-hostfxr-6.0, rh-dotnet60-dotnet-runtime-6.0, rh-dotnet60-dotnet-templates-6.0, +6 moreaffected: no fix planned “Out of support scope”
-
Red Hat Migration Toolkit for Virtualization migration-toolkit-virtualization/mtv-ui-rhel8 Red Hat OpenShift Service Mesh 2 openshift-service-mesh/kiali-rhel8 Red Hat OpenShift Service Mesh 2.1 openshift-service-mesh/kiali-rhel8 Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/console-rhel8affected: no fix available
-
Red Hat Advanced Cluster Security 3 advanced-cluster-security/rhacs-docs-rhel8, advanced-cluster-security/rhacs-main-rhel8, advanced-cluster-security/rhacs-roxctl-rhel8, advanced-cluster-security/rhacs-rhel8-operatoraffected: no fix planned “Will not fix”
-
Red Hat Discovery 1 discovery-server-containeraffected: no fix available
-
Red Hat Enterprise Linux 8 dotnet, dotnet6.0, dotnet-host, dotnet-sdk-6.0, dotnet-hostfxr-6.0, dotnet-runtime-6.0, +7 more Red Hat Enterprise Linux 9 dotnet6.0, dotnet-host, dotnet-sdk-6.0, dotnet-hostfxr-6.0, dotnet-runtime-6.0, dotnet-templates-6.0, +6 moreaffected: no fix planned “Will not fix”
-
Red Hat Fuse 7 http-cache-semantics Red Hat JBoss Data Grid 7 http-cache-semantics Red Hat JBoss Enterprise Application Platform 6 http-cache-semantics Red Hat OpenShift Container Platform 3.11 openshift3/ose-console Red Hat Openshift Container Storage 4 ocs4/mcg-core-rhel8affected: no fix planned “Out of support scope”
-
Red Hat Openshift Data Foundation 4 odf4/mcg-core-rhel8, noobaa-core-containeraffected: no fix available
-
Red Hat OpenShift Dev Spaces devspaces/code-rhel8, devspaces/dashboard-rhel8, devspaces-theia-rhel8-container, devspaces-theia-endpoint-rhel8-containeraffected: no fix available, no fix planned “Out of support scope”
show 10 moreshow fewer
-
Red Hat OpenShift distributed tracing 2 rhosdt/jaeger-query-rhel8, rhosdt/jaeger-all-in-one-rhel8affected: no fix available
-
Red Hat Enterprise Linux AppStream (v. 8) nodejs 14.21.3-1.module+el8.7.0+18531+81d21ca6, nodejs 16.19.1-1.module+el8.7.0+18373+704f5cef, nodejs 18.14.2-2.module+el8.7.0+18445+9493b6ea, nodejs-packaging 23-3.module+el8.3.0+6519+9f98ed83, nodejs-packaging 25-1.module+el8.5.0+10992+fac5fe06, npm 9.5.0-1.18.14.2.2.module+el8.7.0+18445+9493b6ea, +10 morefixed: vendor fix RHSA-2023:1743
-
Red Hat Enterprise Linux AppStream (v. 9) nodejs 16.19.1-1.el9_2, nodejs-libs 16.19.1-1.el9_2, npm 8.19.3-1.16.19.1.1.el9_2, nodejs-full-i18n 16.19.1-1.el9_2, nodejs 18.14.2-2.module+el9.2.0.z+18497+a402347c, npm 9.5.0-1.18.14.2.2.module+el9.2.0.z+18497+a402347c, +4 morefixed: vendor fix RHSA-2023:2655
-
Red Hat Enterprise Linux AppStream EUS (v.8.4) nodejs 14.21.3-1.module+el8.4.0+18317+43f5ac16, nodejs-packaging 23-3.module+el8.3.0+6519+9f98ed83, nodejs-nodemon 2.0.20-3.module+el8.4.0+18317+43f5ac16, npm 6.14.18-1.14.21.3.1.module+el8.4.0+18317+43f5ac16, nodejs-full-i18n 14.21.3-1.module+el8.4.0+18317+43f5ac16fixed: vendor fix RHSA-2023:1533
-
Red Hat Enterprise Linux AppStream EUS (v.8.6) nodejs 14.21.3-1.module+el8.6.0+18532+cbe6f646, nodejs-packaging 23-3.module+el8.3.0+6519+9f98ed83, nodejs-nodemon 2.0.20-3.module+el8.6.0+18532+cbe6f646, npm 6.14.18-1.14.21.3.1.module+el8.6.0+18532+cbe6f646, nodejs-full-i18n 14.21.3-1.module+el8.6.0+18532+cbe6f646fixed: vendor fix RHSA-2023:1742
-
Red Hat Enterprise Linux AppStream EUS (v.9.0) nodejs 16.20.2-1.el9_0, nodejs-libs 16.20.2-1.el9_0, npm 8.19.4-1.16.20.2.1.el9_0, nodejs-full-i18n 16.20.2-1.el9_0fixed: vendor fix RHSA-2023:5533
-
Red Hat Migration Toolkit 1.7 rhmtc/openshift-migration-ui-rhel8 v1.7.8-5fixed: vendor fix RHSA-2023:1428
-
Red Hat Software Collections for RHEL Workstation(v. 7) rh-nodejs14 3.6-2.el7, rh-nodejs14-runtime 3.6-2.el7, rh-nodejs14-scldevel 3.6-2.el7, rh-nodejs14-nodejs 14.21.3-2.el7, rh-nodejs14-npm 6.14.18-14.21.3.2.el7, rh-nodejs14-nodejs-full-i18n 14.21.3-2.el7 Red Hat Software Collections for RHEL(v. 7) rh-nodejs14 3.6-2.el7, rh-nodejs14-runtime 3.6-2.el7, rh-nodejs14-scldevel 3.6-2.el7, rh-nodejs14-nodejs 14.21.3-2.el7, rh-nodejs14-npm 6.14.18-14.21.3.2.el7, rh-nodejs14-nodejs-full-i18n 14.21.3-2.el7fixed: vendor fix RHSA-2023:1744
-
Red Hat RHINT Service Registry 2.4.3 GAfixed: vendor fix RHSA-2023:3815
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/search-api-rhel8 Red Hat Advanced Cluster Security 3 advanced-cluster-security/rhacs-central-db-rhel8 Red Hat Decision Manager 7 http-cache-semantics Red Hat Enterprise Linux 8 cockpit, cockpit-ws, cockpit-pcp, cockpit-bridge, cockpit-podman, cockpit-system, +4 more Red Hat Enterprise Linux AppStream (v. 9) nodejs-nodemon 2.0.20-3.el9_2 Red Hat Integration Camel K 1 http-cache-semanticsnot affected: vulnerable code not present
+4 more productsfewer
Red Hat JBoss Enterprise Application Platform 7 http-cache-semantics Red Hat JBoss Enterprise Application Platform Expansion Pack http-cache-semantics Red Hat Migration Toolkit 1.7 rhmtc/openshift-velero-plugin-rhel8 v1.7.8-3, rhmtc/openshift-migration-velero-rhel8 v1.7.8-4, rhmtc/openshift-migration-openvpn-rhel8 v1.7.8-3, rhmtc/openshift-migration-registry-rhel8 v1.7.8-3, rhmtc/openshift-migration-rhel8-operator v1.7.8-10, rhmtc/openshift-migration-controller-rhel8 v1.7.8-6, +10 more Red Hat Single Sign-On 7 http-cache-semantics
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- last yr.
Exploit prediction
1.61% chance of exploitation in the next 30 days, higher than 76% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- security.snyk.io https://security.snyk.io/vuln/SNYK-JS-HTTPCACHESEMANTICS-3248783 referenced PoC, tagged "exploit" by a source, unverified
- security.snyk.io https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3253332 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | http-cache-semantics | <4.1.1 |
4.1.1 |
| maven | org.webjars.npm:http-cache-semantics | <4.1.1 |
4.1.1 |
Affected products
- n/a http-cache-semantics
- n/a org.webjars.npm:http-cache-semantics
Classification
- Weakness
-
- CWE-1333 Inefficient Regular Expression Complexity
References
-
github.com
/kornelski/http-cache-semantics/commit/560b2d8ef452bbba20ffed69dc155d63ac757b74
web
-
security.snyk.io
/vuln/SNYK-JS-HTTPCACHESEMANTICS-3248783
web, exploit, third-party-advisory
-
security.snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSNPM-3253332
web, exploit, third-party-advisory
-
github.com
/kornelski/http-cache-semantics/blob/master/index.js%23L83
web, broken-link
- security.netapp.com /advisory/ntap-20230622-0008/
-
nvd.nist.gov
/vuln/detail/CVE-2022-25881
advisory
-
github.com
/kornelski/http-cache-semantics
package
-
security.netapp.com
/advisory/ntap-20230622-0008
web
Sources
- CVE List CVE-2022-25881
- GitHub Advisory GHSA-rc47-6667-2j5j
- NVD CVE-2022-25881
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.