Uncontrolled Recursion Affecting nodejs-sanitize-html package, versions *


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.42% (34th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Uncontrolled Recursion vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL10-NODEJSSANITIZEHTML-17330199
  • published13 Jun 2026
  • disclosed24 May 2026

Introduced: 24 May 2026

NewCVE-2026-9358  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:10 nodejs-sanitize-html.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nodejs-sanitize-html package and not the nodejs-sanitize-html package as distributed by RHEL. See How to fix? for RHEL:10 relevant fixed versions and status.

A vulnerability was determined in postcss-selector-parser up to 6.1.2/7.1.2. Affected is the function toString of the file src/selectors/container.js of the component AST Serialization. Executing a manipulation can lead to uncontrolled recursion. It is possible to launch the attack remotely. The exploit has been publicly disclosed and may be utilized. Upgrading to version 6.1.3 and 7.1.3 is able to address this issue. This patch is called 5bc698cef66f8abd12610dc623e5d67cbc0f869d. It is suggested to upgrade the affected component. The vendor explains, that according to his definition "DoS on server-side on user-generated CSS is low risk for us (since most users compile own CSS with PostCSS)." The commits were backported to 6.x branch, which was the most downloaded version.

CVSS Base Scores

version 3.1