CVE-2026-28809: XXE in esaml SAML library allows local file read and potential SSRF

Published Mar 23, 2026
·
Updated

Summary

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 xmerlscan: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.

This issue affects esaml: all versions.

Workarounds

Upgrade to Erlang/OTP 27 or later. Starting with OTP 27, xmerlscan disables entity expansion by default, which mitigates this vulnerability without changes to esaml.

Configurations

The application must use esaml to process SAML messages and run on Erlang/OTP versions before 27. Starting with OTP 27, xmerlscan disables entity expansion by default, which mitigates this vulnerability.

Other sources

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 xmerlscan: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.

This issue affects esaml: all versions.

— MITRE

Affected Software

7 affected components
hex/esaml
Erlang Erlang/OTP<27
arekinath esaml<=1.1
Dropbox esaml
handnot2 esaml<=4.2.0
Jump-app Esaml<=4.6.0
erlang/esaml*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Erlang/OTP to a version that resolves this vulnerability.

    Fixed in 27

Event History

Mar 23, 2026
CVE Published
via MITRE·10:09 AM
Data Sourced
via MITRE·10:09 AM
DescriptionWeakness
Data Sourced
via OSV·10:09 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:16 AM
DescriptionSeverityWeakness
May 22, 2026
Data Sourced
via NVD·03:09 PM
RemedyAffected Software
Updated
via NVD·03:09 PM
Severity
Jul 24, 2026
Updated
via MITRE·02:14 PM
Description
Updated
via NVD·03:17 PM
Description
Nov 20, 2026
Updated
via MITRE·03:19 AM
Description
Updated
via NVD·04:17 AM
Description
Data Sourced
via OSV·06:00 AM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-28809?

CVE-2026-28809 is categorized as a high severity vulnerability due to the potential impact of local file reads and SSRF.

2

How do I fix CVE-2026-28809?

To mitigate CVE-2026-28809, ensure that you upgrade to a patched version of the esaml library and avoid using vulnerable configurations.

3

Which software is affected by CVE-2026-28809?

CVE-2026-28809 affects the esaml SAML library and versions of Erlang/OTP prior to 27.

4

What type of attacks can be performed using CVE-2026-28809?

CVE-2026-28809 allows for local file read attacks and potential Server-Side Request Forgery (SSRF) through crafted SAML documents.

5

Is CVE-2026-28809 a remote or local vulnerability?

CVE-2026-28809 is primarily a local vulnerability that can also lead to remote exploitation via SSRF.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203