Vulnerability GHSA-4g2h-vm7x-747c

Medium Risk
MEDIUM RISK
CVSS Score: 6.0
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
8 months ago
March 23, 2026 at 12:30 PM UTC
esaml XXE vulnerability allows local file disclosure and SSRF via crafted SAML messages
3.0.1 - 4.6.0
3.0.1 - 4.6.0

Summary

esaml XXE vulnerability allows local file disclosure and SSRF via crafted SAML messages

Details

XML External Entity (XXE) vulnerability in esaml (and its forks) allows an attacker to cause the system to read local files and incorporate their contents into processed SAML documents, and potentially perform SSRF via crafted SAML messages.

esaml parses attacker-controlled SAML messages using xmerl_scan:string/2 before signature verification without disabling XML entity expansion. On Erlang/OTP versions before 27, Xmerl allows entities by default, enabling pre-signature XXE attacks. An attacker can cause the host to read local files (e.g., Kubernetes-mounted secrets) into the SAML document. If the attacker is not a trusted SAML SP, signature verification will fail and the document is discarded, but file contents may still be exposed through logs or error messages.

This issue affects all versions of esaml, including forks by arekinath, handnot2, and dropbox. Users running on Erlang/OTP 27 or later are not affected due to Xmerl defaulting to entities disabled.

Impacted packages

Timeline

Published
8 months ago
March 23, 2026 at 12:30 PM UTC
Last Modified
7 months ago
April 06, 2026 at 11:34 PM UTC