{"id":"CVE-2021-23382","published":"2021-04-26T15:30:26Z","modified":"2024-09-16T23:26:53Z","title":"Regular Expression Denial of Service (ReDoS)","vendor":null,"product":null,"tier":"tail","description":{"text":"The package postcss before 8.2.13 are vulnerable to Regular Expression Denial of Service (ReDoS) via getAnnotationURL() and loadAnnotation() in lib/previous-map.js. The vulnerable regexes are caused mainly by the sub-pattern \\/\\*\\s* sourceMappingURL=(.*).","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02578,"percentile":0.85584,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-POSTCSS-1255640","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1255641","tags":["x_refsource_MISC"]},{"url":"https://github.com/postcss/postcss/commit/2b1d04c867995e55124e0a165b7c6622c1735956","tags":["x_refsource_MISC"]}],"priority":{"score":20.8,"factors":[{"name":"EPSS percentile","points":17.12},{"name":"CVSS severity","points":3.71}]},"affectedVersions":[{"vendor":"n/a","product":"postcss","versions":[">= unspecified, < 8.2.13"]}],"affected":[{"ecosystem":"npm","package":"postcss","vulnerableRanges":[">=8.0.0, <8.2.13","<7.0.36"],"patched":["8.2.13","7.0.36"],"from":["GHSA-566m-qj78-rww5"],"provenance":"source"}],"summary":{"text":"The postcss package before 8.2.13 contains a Regular Expression Denial of Service (ReDoS) flaw in the getAnnotationURL() and loadAnnotation() functions in lib/previous-map.js, caused by the regex sub-pattern \\/\\*\\s* sourceMappingURL=(.*). An attacker with network access, requiring no privileges or user interaction, can send crafted input that makes these regexes consume excessive processing time, degrading availability.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:59Z"},"euvd":{"id":"EUVD-2022-0459","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-postcss-cve-2021-23368","parents":[{"from":"CVE-2021-23368","to":"CVE-2021-23382","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:postcss","fromFixed":"8.2.10","toFixed":"8.2.13","daysApart":14},{"kind":"same-code","provenance":"machine","files":["lib/previous-map.js"],"commits":["https://github.com/postcss/postcss/commit/b6f3e4d5a8d7504d553267f80384373af3a3dec5","https://github.com/postcss/postcss/commit/8682b1e4e328432ba692bed52326e84439cec9e4","https://github.com/postcss/postcss/commit/2b1d04c867995e55124e0a165b7c6622c1735956"],"basis":"shared function","functions":["PreviousMap"]},{"kind":"similar","provenance":"machine","score":0.4,"basis":"same package + description similarity"}]}],"children":[{"from":"CVE-2021-23382","to":"CVE-2026-45623","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/previous-map.js"],"commits":["https://github.com/postcss/postcss/commit/2b1d04c867995e55124e0a165b7c6622c1735956","https://github.com/postcss/postcss/commit/aaec7b78b3ce2792585b4b300ef1bd5dd5b3e8ad","https://github.com/postcss/postcss/commit/c64b7488d2731dfa16213739b42c34faf5a9eba3"],"basis":"shared function","functions":["PreviousMap"]}]},{"from":"CVE-2021-23382","to":"CVE-2026-73646","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/previous-map.js"],"commits":["https://github.com/postcss/postcss/commit/2b1d04c867995e55124e0a165b7c6622c1735956","https://github.com/postcss/postcss/commit/95663d3eb7ba26f4854dd19d3b4f4425760cf56c"],"basis":"shared function","functions":["PreviousMap"]}]}],"packageHistory":[{"cve":"CVE-2021-23368","published":"2021-04-12","fixed":"8.2.10","kev":false},{"cve":"CVE-2021-23382","published":"2021-04-26","fixed":"8.2.13","kev":false},{"cve":"CVE-2023-44270","published":"2023-09-29","fixed":"8.4.31","kev":false},{"cve":"CVE-2026-41305","published":"2026-04-24","fixed":"8.5.10","kev":false},{"cve":"CVE-2026-45623","published":"2026-07-27","fixed":"8.5.12","kev":false}],"package":"npm:postcss"}}