XXE in esaml SAML library allows local file read and potential SSRF
Published Mar 23, 2026
6.3
MEDIUMCVSS 4.0
EPSS 0.45%
Description
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.
Affected products
-
- Version StatusaffectedConstraints
- Version StatusunaffectedConstraints-
- Version
-
-
-
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
Vendor solution
Upgrade to Erlang/OTP 27 or later. Starting with OTP 27, xmerl_scan disables entity expansion by default, which mitigates this vulnerability without changes to esaml.
References (6)
- https://cna.erlef.org/cves/CVE-2026-28809.html third-party-advisoryrelatedPatchThird Party Advisory
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-14396 Advisory
- https://github.com/Jump-App/esaml/commit/bab85efde7c136911402a881ca55173759467a26 patch
- https://github.com/advisories/GHSA-4g2h-vm7x-747c Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-28809
- https://osv.dev/vulnerability/EEF-CVE-2026-28809 relatedThird Party Advisory
| Link | Providers | Tags |
|---|---|---|
| https://cna.erlef.org/cves/CVE-2026-28809.html | third-party-advisoryrelatedPatchThird Party Advisory | |
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-14396 | Advisory | |
| https://github.com/Jump-App/esaml/commit/bab85efde7c136911402a881ca55173759467a26 | patch | |
| https://github.com/advisories/GHSA-4g2h-vm7x-747c | Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-28809 | ||
| https://osv.dev/vulnerability/EEF-CVE-2026-28809 | relatedThird Party Advisory |
Change history (0)
No recorded changes yet.