Intel

AIKIDO-2026-866435

inline-style-parser is vulnerable to Regular Expression Denial of Service (ReDoS)

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 6, 2026
July 6, 2026

60

CVE Score

Medium

Regular Expression Denial of Service (ReDoS)

Are you affected? Scan for Free

TL;DR

inline-style-parser strips CSS comments from declaration properties and values with a regular expression built from nested quantifiers and ambiguous alternation. When the parser processes an inline style string containing a crafted comment sequence, the regex engine enters catastrophic backtracking and blocks the single-threaded event loop. An application that parses untrusted CSS or inline style strings can be forced into a denial-of-service state by a short malicious input. The fix rewrites the comment-stripping regular expression into an unambiguous, linear-time pattern.

How do I fix this?

Upgrade the inline-style-parser library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application parses untrusted CSS or inline style strings.

Versions

0.1.0 - 0.2.8

Fixed in 0.2.9

Background info

inline-style-parser is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 0.1.0 - 0.2.8.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea