CVE-2026-27210: Dynamic Attribute Injection

Setting DOM attributes dynamically from unvalidated object keys can result in Cross-Site Scripting (XSS) if HTML event handlers (e.g., `onload`, `onerror`) are allowed. Sanitize or filter keys before calling `setAttribute`.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-27210-dynamic-attribute-injection --engine opengrep

Description

Setting DOM attributes dynamically from unvalidated object keys can result in Cross-Site Scripting (XSS) if HTML event handlers (e.g., `onload`, `onerror`) are allowed. Sanitize or filter keys before calling `setAttribute`.