CVE-2026-50159: Css Selector Incomplete Namespace Check

The CSS selector scope check uses `startsWith(namespace)` without verifying trailing delimiters (such as spaces or child combinators). Selectors with sibling combinators (e.g., `#namespace~*`) can bypass scope prepending, leading to CSS injection or style pollution.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0TS
greprules fetch cve-2026-50159-css-selector-incomplete-namespace-check --engine opengrep

Description

The CSS selector scope check uses `startsWith(namespace)` without verifying trailing delimiters (such as spaces or child combinators). Selectors with sibling combinators (e.g., `#namespace~*`) can bypass scope prepending, leading to CSS injection or style pollution.