CVE-2026-32730: Ast Node Falsy Bypass To Xss

Evaluating AST node properties using truthiness checks (e.g., `if (node.text)`) rather than nullish checks (`!= null`) can allow an empty string (`""`) to bypass safety mechanisms. Execution then falsely falls through to evaluate unsafe downstream properties (like `raw` or `html`) on the same node, leading to XSS or logic bypass. Update property checks to us

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-32730-ast-node-falsy-bypass-to-xss --engine opengrep

Description

Evaluating AST node properties using truthiness checks (e.g., `if (node.text)`) rather than nullish checks (`!= null`) can allow an empty string (`""`) to bypass safety mechanisms. Execution then falsely falls through to evaluate unsafe downstream properties (like `raw` or `html`) on the same node, leading to XSS or logic bypass. Update property checks to us