{"schema_version":"1.7.3","id":"GHSA-rc47-6667-2j5j","published":"2023-01-31T06:30:26Z","modified":"2026-02-04T03:35:27.054959Z","aliases":["CVE-2022-25881"],"related":["CGA-wqfv-cvj7-q592"],"summary":"http-cache-semantics vulnerable to Regular Expression Denial of Service","details":"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":[{"package":{"name":"http-cache-semantics","ecosystem":"npm","purl":"pkg:npm/http-cache-semantics"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.1.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/01/GHSA-rc47-6667-2j5j/GHSA-rc47-6667-2j5j.json"}},{"package":{"name":"org.webjars.npm:http-cache-semantics","ecosystem":"Maven","purl":"pkg:maven/org.webjars.npm/http-cache-semantics"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.1"}]}],"versions":["3.8.1","4.0.4","4.1.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/01/GHSA-rc47-6667-2j5j/GHSA-rc47-6667-2j5j.json"}}],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25881"},{"type":"WEB","url":"https://github.com/kornelski/http-cache-semantics/commit/560b2d8ef452bbba20ffed69dc155d63ac757b74"},{"type":"PACKAGE","url":"https://github.com/kornelski/http-cache-semantics"},{"type":"WEB","url":"https://github.com/kornelski/http-cache-semantics/blob/master/index.js%23L83"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20230622-0008"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3253332"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-HTTPCACHESEMANTICS-3248783"}],"database_specific":{"cwe_ids":["CWE-1333"],"github_reviewed":true,"github_reviewed_at":"2023-02-01T23:48:07Z","nvd_published_at":"2023-01-31T05:15:00Z","severity":"HIGH"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}