CVE-2025-68457: Bind Attribute Hydration Xss

Dynamically copying attributes from an object (e.g., `dataset`) to a DOM element without validating the URL or attribute type can lead to XSS. An attacker could inject a malicious `javascript:` URL into DOM execution boundaries (`href`, `src`, etc.). Verify that attribute names and values are explicitly validated against an allowlist or a safe URL check prio

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2025-68457-bind-attribute-hydration-xss --engine opengrep

Description

Dynamically copying attributes from an object (e.g., `dataset`) to a DOM element without validating the URL or attribute type can lead to XSS. An attacker could inject a malicious `javascript:` URL into DOM execution boundaries (`href`, `src`, etc.). Verify that attribute names and values are explicitly validated against an allowlist or a safe URL check prio