CVE-2026-66293
XML comment injection in Saxy encoder via unescaped double hyphen
Mitigation
- Upgrade saxy to 1.7.0 or later.
- Upgrade saxy to 6d12ee12b9e32e86ef598b3f3cafccd1840b2f41 or later.
- Vendor workaround: Reject or rewrite the -- sequence in untrusted text before passing it to Saxy.XML.comment/1, for example by replacing -- with - -.
- Alternatively, stop emitting untrusted data as XML comments. Comments carry no semantic payload for consumers, so the text can usually be moved into an element or a CDATA section instead.
Who should check
- Anyone running qcam saxy >= 0.7.0, < 1.7.0
- Anyone running qcam saxy >= 7266632e9407842f28ffac254c56dc41210a5690, < 6d12ee12b9e32e86ef598b3f3cafccd1840b2f41
Vulnerability facts
- Affected
- qcam saxy >= 0.7.0, < 1.7.0; qcam saxy >= 7266632e9407842f28ffac254c56dc41210a5690, < 6d12ee12b9e32e86ef598b3f3cafccd1840b2f41
- Fixed in
- qcam saxy 1.7.0, qcam saxy 6d12ee12b9e32e86ef598b3f3cafccd1840b2f41
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- 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:L/SI:L/SA:NOpen in CVSS calculator
Show all 11 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: Low
- Integrity impact on other systems: Low
- Availability impact on other systems: None
- EPSS
- 0.22% chance of exploitation in 30 days (percentile 8, 2026-11-26)
- CWE
- CWE-91
- Modified
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 <!-- and --> 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. This issue affects saxy: from 0.7.0 before 1.7.0.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-66293. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-66293.md Affected: qcam saxy >= 0.7.0, < 1.7.0; qcam saxy >= 7266632e9407842f28ffac254c56dc41210a5690, < 6d12ee12b9e32e86ef598b3f3cafccd1840b2f41 Fixed in: qcam saxy 1.7.0, qcam saxy 6d12ee12b9e32e86ef598b3f3cafccd1840b2f41 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.
References
Vendor advisories
Patches
FAQ
Is CVE-2026-66293 being exploited?
There is no confirmed exploitation: CVE-2026-66293 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-66293?
Low: CVSS 2.1 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2026-66293?
qcam saxy >= 0.7.0, < 1.7.0; qcam saxy >= 7266632e9407842f28ffac254c56dc41210a5690, < 6d12ee12b9e32e86ef598b3f3cafccd1840b2f41.
Is there a fix for CVE-2026-66293?
Yes. Fixed in qcam saxy 1.7.0, qcam saxy 6d12ee12b9e32e86ef598b3f3cafccd1840b2f41. Upgrade saxy to 1.7.0 or later. Upgrade saxy to 6d12ee12b9e32e86ef598b3f3cafccd1840b2f41 or later. Vendor workaround: Reject or rewrite the -- sequence in untrusted text before passing it to Saxy.XML.comment/1, for example by replacing -- with - -. Alternatively, stop emitting untrusted data as XML comments. Comments carry no semantic payload for consumers, so the text can usually be moved into an element or a CDATA section instead.
How do I check if I'm affected by CVE-2026-66293?
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.