Hex
CVE-2026-66293
XML comment injection in Saxy encoder via unescaped double hyphen
- Severity
- Low 2.1
- Published
- 6 Nov 2026
- Last changed
- 19 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 1.7.0
- Exploit chance
- 0.2% in the next 30 daysHigher than 6% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- XML injection (CWE-91)
- Attack
- Needs local access · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Change some data
- CVSS 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- Sources
- CVE Program
Description
XML injection in the encoder of Saxy. Saxy.Encoder does not neutralize the -- sequence in XML comment content: escape_comment/2 returns the comment binary unchanged in every clause and only appends a space when the comment ends in a single -, so neither an interior -- nor a full --> is escaped or rejected before the encoder wraps the content in the delimiters.
When an application serializes attacker-controlled text as a comment, through Saxy.XML.comment/1 or a raw {:comment, text} simple form child, the attacker can close the comment early with --> and inject arbitrary sibling markup into the serialized document. A downstream parser then sees elements, attributes, and text that the application never built. Where the document is rendered as HTML or SVG, the injected markup executes as stored cross-site scripting; where it is consumed by another XML processor, the attacker can forge data that the producing application never emitted. Documents that Saxy only parses are not a vector.
Affected software
| Software | Affected versions |
|---|---|
saxyHex · osv:Hex:saxy |
|
About saxy
Vulnerabilities in saxy
- In our list
- 3
- Published in the last 12 months
- 3
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-66294XML injection in Saxy via unescaped CDATA section terminatorLow 2.1 6 Nov 2026
- CVE-2026-66295Processing instruction target and content emitted unescaped in Saxy encoder allows XML injectionLow 2.1 6 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-66293