CVE-2026-54267: Missing Tagname Check Dom Clobbering

The application retrieves an element by ID and parses its text content without checking its `tagName` or `nodeName`. This is susceptible to DOM clobbering, where an attacker can inject a malicious element with the targeted ID (e.g., `<div id="...">`) to bypass type assumptions and poison the parsed JSON payload. Perform validation to ensure the retrieved ele

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-54267-missing-tagname-check-dom-clobbering --engine opengrep

Description

The application retrieves an element by ID and parses its text content without checking its `tagName` or `nodeName`. This is susceptible to DOM clobbering, where an attacker can inject a malicious element with the targeted ID (e.g., `<div id="...">`) to bypass type assumptions and poison the parsed JSON payload. Perform validation to ensure the retrieved ele