{"id":"CVE-2022-25881","aliases":["CVE-2022-25881","GHSA-rc47-6667-2j5j"],"related":[],"kind":"vulnerability","state":"published","title":"http-cache-semantics vulnerable to Regular Expression Denial of Service","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Esto afecta a las versiones del paquete http-cache-semantics anteriores a la 4.1.1. El problema se puede explotar mediante valores de encabezado de solicitud maliciosos enviados a un servidor, cuando ese servidor lee la política de caché de la solicitud utilizando esta librería.","source":"nvd"}],"published":"2023-01-31T05:00:01.220Z","modified":"2026-09-10T03:49:51.817Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"4.1.1","status":"affected"}],"product":"http-cache-semantics","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"4.1.1","status":"affected"}],"product":"org.webjars.npm:http-cache-semantics","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.1.1"}],"ecosystem":"npm","package":"http-cache-semantics","purl":"pkg:npm/http-cache-semantics","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.1.1"}],"ecosystem":"Maven","package":"org.webjars.npm:http-cache-semantics","purl":"pkg:maven/org.webjars.npm/http-cache-semantics","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.1.1"}],"vendor":"http-cache-semantics_project","product":"http-cache-semantics","cpe":"cpe:2.3:a:http-cache-semantics_project:http-cache-semantics:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-HTTPCACHESEMANTICS-3248783","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3253332","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/kornelski/http-cache-semantics/blob/master/index.js%23L83","tags":["broken-link","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20230622-0008/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25881","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/kornelski/http-cache-semantics/commit/560b2d8ef452bbba20ffed69dc155d63ac757b74","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/kornelski/http-cache-semantics","tags":["package"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20230622-0008","tags":["web"],"sources":["ghsa"]}],"credits":["Carter Snook"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-03-27T17:16:22.393Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-25881","url":"https://www.cve.org/CVERecord?id=CVE-2022-25881","licence":"CVE Terms of Use","modified":"2025-03-27T17:16:32.835Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rc47-6667-2j5j","url":"https://github.com/advisories/GHSA-rc47-6667-2j5j","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:51.817Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-25881","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25881","licence":"Public domain","modified":"2026-06-17T04:34:26.123Z"}],"updatedAt":"2026-11-25T22:58:18.441Z","epss":{"score":0.01724,"percentile":0.78213,"date":"2026-12-01T12:00:22.000Z"}}