# CVE-2026-66294: XML injection in Saxy via unescaped CDATA section terminator

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 2.1
- **CVSS:** 2.1 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: Low; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 8, 2026-11-26)
- **CWE:** CWE-91
- **Published:** 2026-11-06T10:16:49.656Z
- **Modified:** 2026-11-19T07:53:59.030Z

## Who should check

- Anyone running qcam saxy \>= 0.7.0, \< 1.7.0
- Anyone running qcam saxy \>= 7266632e9407842f28ffac254c56dc41210a5690, \< 71d99fae12f1d6596f5edb57b71f26ba854f4d33

## 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. Everything supplied after the \]\]\> is emitted outside any CDATA context and is parsed as markup, so a single attacker-controlled text field becomes attacker-controlled document structure: arbitrary sibling elements and attributes that the application never built. Downstream consumers of the serialized document accept the injected markup as genuine. Services that generate SOAP envelopes, RSS or Atom feeds, sitemaps, SVG, or XML exports from user-supplied content can have trusted fields forged or overridden. Applications that never place untrusted text in a CDATA node are not affected.

This issue affects saxy: from 0.7.0 before 1.7.0.

## Affected and fixed versions

- qcam saxy: \>= 0.7.0, \< 1.7.0 (cvelist)
- qcam saxy: \>= 7266632e9407842f28ffac254c56dc41210a5690, \< 71d99fae12f1d6596f5edb57b71f26ba854f4d33 (cvelist)

## Mitigation

- Upgrade saxy to 1.7.0 or later.
- Upgrade saxy to 71d99fae12f1d6596f5edb57b71f26ba854f4d33 or later.
- Vendor workaround: Render untrusted text as ordinary character data instead of CDATA, by passing a plain string or Saxy.XML.characters/1 to the element builder. That encoder path escapes the XML metacharacters and preserves the same text content.
- 
- If a CDATA section is required, split the terminator in application code before building the node: replace every occurrence of \]\]\> in the untrusted text with \]\]\]\]\>\<!\[CDATA\[\> and pass the result to Saxy.XML.cdata/1. Once the encoder wraps that payload, the output is the standard split encoding.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-66294. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-66294.md
Affected: qcam saxy >= 0.7.0, < 1.7.0; qcam saxy >= 7266632e9407842f28ffac254c56dc41210a5690, < 71d99fae12f1d6596f5edb57b71f26ba854f4d33
Fixed in: qcam saxy 1.7.0, qcam saxy 71d99fae12f1d6596f5edb57b71f26ba854f4d33

Steps:
1. Search this machine and project for qcam saxy: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-66294 being exploited?

There is no confirmed exploitation: CVE-2026-66294 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-66294?

Low: CVSS 2.1 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-66294?

qcam saxy \>= 0.7.0, \< 1.7.0; qcam saxy \>= 7266632e9407842f28ffac254c56dc41210a5690, \< 71d99fae12f1d6596f5edb57b71f26ba854f4d33.

### Is there a fix for CVE-2026-66294?

Yes. Fixed in qcam saxy 1.7.0, qcam saxy 71d99fae12f1d6596f5edb57b71f26ba854f4d33. Upgrade saxy to 1.7.0 or later. Upgrade saxy to 71d99fae12f1d6596f5edb57b71f26ba854f4d33 or later. Vendor workaround: Render untrusted text as ordinary character data instead of CDATA, by passing a plain string or Saxy.XML.characters/1 to the element builder. That encoder path escapes the XML metacharacters and preserves the same text content.  If a CDATA section is required, split the terminator in application code before building the node: replace every occurrence of \]\]\> in the untrusted text with \]\]\]\]\>\<!\[CDATA\[\> and pass the result to Saxy.XML.cdata/1. Once the encoder wraps that payload, the output is the standard split encoding.

### How do I check if I'm affected by CVE-2026-66294?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/qcam/saxy/security/advisories/GHSA-hq6g-j46w-wx72>
- patch: <https://github.com/qcam/saxy/commit/7266632e9407842f28ffac254c56dc41210a5690>
- patch: <https://github.com/qcam/saxy/commit/71d99fae12f1d6596f5edb57b71f26ba854f4d33>
- other: <https://cna.erlef.org/cves/CVE-2026-66294.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-66294>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-66294>

HTML: <https://flawdb.com/CVE-2026-66294> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-66294>
