XML External Entity injection in XMLSecLibs - #VU145063
Published: August 25, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose sensitive information and perform server-side request forgery.
The vulnerability exists due to improper restriction of xml external entity reference in the decryptNode() method in XMLSecEnc.php when parsing attacker-controlled decrypted xml content. A remote attacker can inject a crafted doctype in encrypted plaintext to disclose sensitive information and perform server-side request forgery.
In SAML deployments, the service provider public encryption key may be available in metadata, making attacker-controlled ciphertext achievable. The issue affects PHP versions earlier than 8.0 where external entity loading is enabled by default.