CVE-2026-30919: Php Insecure Htmlspecialchars Noquotes

Using `htmlspecialchars()` with the `ENT_NOQUOTES` flag skips encoding of single and double quotes. If the resulting string is embedded inside HTML attributes, attackers can break out of the target attribute context and inject malicious scripts. Prefer using `ENT_QUOTES` or robust contextual output encoding.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0PHP
greprules fetch cve-2026-30919-php-insecure-htmlspecialchars-noquotes --engine opengrep

Description

Using `htmlspecialchars()` with the `ENT_NOQUOTES` flag skips encoding of single and double quotes. If the resulting string is embedded inside HTML attributes, attackers can break out of the target attribute context and inject malicious scripts. Prefer using `ENT_QUOTES` or robust contextual output encoding.