PT-2021-15478

CVE-2021-23382

·

تاريخ النشر

2021-04-26

·

تاريخ التحديث

2026-08-28

الوصف من

CVSS 3.1
7.5
عالية
المقاييسAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions postcss versions prior to 7.0.36 postcss versions 8.0.0 through 8.2.13
Description The issue is related to Regular Expression Denial of Service (ReDoS) via the getAnnotationURL() and loadAnnotation() functions in lib/previous-map.js. The vulnerable regexes are caused mainly by the sub-pattern /*s* sourceMappingURL=(.*). This can lead to a denial of service when parsing specific CSS strings.
Recommendations For postcss versions prior to 7.0.36, update to version 7.0.36 or later. For postcss versions 8.0.0 through 8.2.13, update to version 8.2.13 or later. As a temporary workaround, consider disabling the getAnnotationURL() and loadAnnotation() functions in lib/previous-map.js until a patch is available. Restrict access to the lib/previous-map.js module to minimize the risk of exploitation. Avoid using the sourceMappingURL parameter in the affected API endpoint until the issue is resolved.
قابلية الاستغلال
استغلال
إصلاح
التأثيرات
الباحثون
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
GHSA-566M-QJ78-RWW5
SNYK-JAVA-ORGWEBJARSNPM-1255641
SNYK-JS-POSTCSS-1255640
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾