# CVE-2026-66293: XML comment injection in Saxy encoder via unescaped double hyphen

- Severity: Low 2.1 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-02)
- Published: 2026-11-06T10:16:42.053Z
- Modified: 2026-11-25T06:30:11.966Z
- Also known as: EEF-CVE-2026-66293, GHSA-mm3m-xwmf-v698
- Weaknesses: CWE-91
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: EEF

## 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.

(As written by CVE List.)

## Affected

- saxy: from 0.7.0 before 1.7.0
- qcam/saxy: from 7266632e9407842f28ffac254c56dc41210a5690 before 6d12ee12b9e32e86ef598b3f3cafccd1840b2f41
- saxy (Hex): from 0.7.0 before 1.7.0
- https://github.com/qcam/saxy: from 7266632e9407842f28ffac254c56dc41210a5690 before 6d12ee12b9e32e86ef598b3f3cafccd1840b2f41

## Every score

- EEF: CVSS:4.0 2.1 Low `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

- <https://github.com/qcam/saxy/security/advisories/GHSA-mm3m-xwmf-v698> (advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-66293.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-66293> (related)
- <https://github.com/qcam/saxy/commit/7266632e9407842f28ffac254c56dc41210a5690> (related, web)
- <https://github.com/qcam/saxy/commit/6d12ee12b9e32e86ef598b3f3cafccd1840b2f41> (fix, patch)
- <https://hex.pm/packages/saxy> (package)

## Sources

- CVE List: [CVE-2026-66293](https://www.cve.org/CVERecord?id=CVE-2026-66293), CVE Terms of Use, modified 2026-11-19
- Erlang Ecosystem Foundation: [EEF-CVE-2026-66293](https://osv.dev/vulnerability/EEF-CVE-2026-66293), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-66293](https://nvd.nist.gov/vuln/detail/CVE-2026-66293), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-66293 · Whole record: https://cve.day/CVE-2026-66293.json · Rebuilt by cve.day 2026-11-25T22:59:49.252Z
