CVE-2026-66293: XML comment injection in Saxy encoder via unescaped double hyphen
Published 2026-11-06 · Updated 2026-11-25 · Also known as EEF-CVE-2026-66293, GHSA-mm3m-xwmf-v698
Summary
An XML comment injection vulnerability exists in the Saxy encoder due to insufficient sanitization of double hyphen sequences. Application maintainers serializing untrusted data into XML comments using Saxy versions 0.7.0 up to 1.7.0 should update their dependencies.
Who is affected
Applications that pass attacker-controlled text into Saxy XML comments via Saxy.XML.comment/1 or the {:comment, text} simple form are affected when serialized using Saxy encoding functions. An attacker can close the comment prematurely with a '-->' sequence and inject arbitrary sibling markup, potentially leading to stored cross-site scripting in HTML/SVG outputs or data forgery in XML parsers. Documents processed only by Saxy parsers are not affected.
Exploitability
The vulnerability requires local or physical adjacent access with low attack complexity, though attack requirements are present and privileges required are none. Based on an EPSS score of 0.002 and absence from the CISA KEV list, active exploitation is currently minimal.
Remediation
- Upgrade the Hex saxy package to version 1.7.0 or later.
- Reject or rewrite the '--' sequence in untrusted text before passing it to Saxy.XML.comment/1, or avoid emitting untrusted data as XML comments.
How to check your project
- Check mix.lock or dependency configuration files for the Hex saxy package version within the range 0.7.0 up to 1.7.0.
- Search codebase for usages of Saxy.XML.comment/1 or {:comment, ...} serialization patterns handling untrusted user input.
Automated analysis of the published advisory data, generated 2026-11-25. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Hex | saxy |
>= 0.7.0, < 1.7.0 | 1.7.0 | mix deps.update saxy |
CVSS 4.0 vector
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N
| Attack vector | Local |
|---|---|
| Attack complexity | Low |
| Attack requirements | Present |
| Privileges required | None |
| User interaction | None |
| Confidentiality (vulnerable system) | None |
| Integrity (vulnerable system) | Low |
| Availability (vulnerable system) | None |
| Confidentiality (subsequent systems) | Low |
| Integrity (subsequent systems) | Low |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
What causes the XML comment injection vulnerability in Saxy?
The Saxy encoder fails to neutralize or escape the '--' sequence within XML comment content, allowing comment delimiters to be forged.
Which Saxy versions are affected?
Versions from 0.7.0 up to, but not including, 1.7.0 are affected.
Are applications that only parse XML documents using Saxy vulnerable?
No, documents that Saxy only parses do not reach the vulnerable encoder and are not a vector.
Original advisory description
References
- ADVISORY https://github.com/qcam/saxy/security/advisories/GHSA-mm3m-xwmf-v698
- WEB https://cna.erlef.org/cves/CVE-2026-66293.html
- WEB https://github.com/qcam/saxy/commit/7266632e9407842f28ffac254c56dc41210a5690
- FIX https://github.com/qcam/saxy/commit/6d12ee12b9e32e86ef598b3f3cafccd1840b2f41
- PACKAGE https://hex.pm/packages/saxy
Source records: EEF-CVE-2026-66293 (OSV.dev) · EPSS by FIRST, 2026-11-25.