CVE-2025-66578: Unchecked C14n Return Value

The return value of `DOMNode::C14N()` is not verified. `C14N()` returns `false` on failure, which may be implicitly cast to an empty string. When canonicalized output is used in XML signature verification, missing error checks can lead to empty digest validation and authentication bypass. Always verify that `C14N()` does not return `false` before using or re

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0PHPβ
greprules fetch cve-2025-66578-unchecked-c14n-return-value --engine opengrep

Description

The return value of `DOMNode::C14N()` is not verified. `C14N()` returns `false` on failure, which may be implicitly cast to an empty string. When canonicalized output is used in XML signature verification, missing error checks can lead to empty digest validation and authentication bypass. Always verify that `C14N()` does not return `false` before using or re