Hex
CVE-2026-66294
XML injection in Saxy via unescaped CDATA section terminator
- 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:N/SI:L/SA:N- Sources
- CVE Program
Description
XML injection in the Saxy XML encoder. Saxy.Encoder.cdata/1 serializes a {:cdata, characters} node by wrapping the supplied characters between <![CDATA[ and ]]> and passing the payload through byte for byte. The encoder's character-data and attribute-value paths escape the XML metacharacters <, >, &, ", and ', but the CDATA path applies no neutralization at all. XML provides no character escaping mechanism inside a CDATA section, so the only correct way to represent a ]]> substring is to split the section and rejoin it as ]]]]><![CDATA[>. Saxy neither performs that split nor rejects the substring.
An application that renders untrusted text as CDATA, by building the node with Saxy.XML.cdata/1 and serializing it with Saxy.encode!/2 or Saxy.encode_to_iodata!/2, therefore lets an attacker terminate the section at a position of their choosing.
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-66295Processing instruction target and content emitted unescaped in Saxy encoder allows XML injectionLow 2.1 6 Nov 2026
- CVE-2026-66293XML comment injection in Saxy encoder via unescaped double hyphenLow 2.1 6 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-66294