CVE-2026-50555: Attribute Sanitization Missing Tag Context

Attribute sanitization logic relies solely on the attribute name, ignoring the tag name. This can lead to XSS if namespace-specific tags (e.g., `<svg:animate>`) contextually change the security implications of an attribute. Ensure that sanitization schema lookup incorporates the element tag name or namespace.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0TS
greprules fetch cve-2026-50555-attribute-sanitization-missing-tag-context --engine opengrep

Description

Attribute sanitization logic relies solely on the attribute name, ignoring the tag name. This can lead to XSS if namespace-specific tags (e.g., `<svg:animate>`) contextually change the security implications of an attribute. Ensure that sanitization schema lookup incorporates the element tag name or namespace.