#VU76184 Incorrect regular expression in css-what


Published: 2023-05-16

Vulnerability identifier: #VU76184

Vulnerability risk: Medium

CVSSv3.1: 6.5 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-21222

CWE-ID: CWE-185

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
css-what
Web applications / JS libraries

Vendor: fb55

Description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to insufficient input validation when processing regular expressions in the re_attr variable of index.js. A remote attacker can pass specially crafted data to the application and perform regular expression denial of service (ReDos) attack.

Mitigation
Install update from vendor's website.

Vulnerable software versions

css-what: 2.0.0 - 2.1.2


External links
http://security.snyk.io/vuln/SNYK-JS-CSSWHAT-3035488
http://github.com/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js%23L12
http://lists.debian.org/debian-lts-announce/2023/03/msg00001.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability