Security mailing lists by PureSourceCode

CVE-2026-66293

LOW 2.1CVSS 4.0

XML comment injection in Saxy encoder via unescaped double hyphen

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.

Published
6 Nov 2026
Last modified
25 Nov 2026
Assigned by
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
NVD status
Deferred
Weakness
CWE-91
Also known as
EEF-CVE-2026-66293GHSA-mm3m-xwmf-v698
Sources
NVDJSONCVE ListJSONOSV EEF-CVE-2026-66293JSON

Scores

SourceScored byVersionScoreVector / decision
NVD 6b3ad84c-e1a6-4bf7-a703-f496b71e49db (Secondary) CVSS 4.0 LOW 2.1 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVE List EEF CVSS 4.0 LOW 2.1 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
CVE List CISA-ADP SSVC Exploitation: none; Automatable: no; Technical Impact: partial

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List https://repo.hex.pm saxy
cpe:2.3:a:qcam:saxy:*:*:*:*:*:*:*:*
>= 0.7.0, < 1.7.0 1.7.0
CVE List https://github.com qcam/saxy
cpe:2.3:a:qcam:saxy:*:*:*:*:*:*:*:*
>= 7266632e9407842f28ffac254c56dc41210a5690, < 6d12ee12b9e32e86ef598b3f3cafccd1840b2f41 6d12ee12b9e32e86ef598b3f3cafccd1840b2f41
OSV Hex saxy >= 0.7.0, < 1.7.0 1.7.0

References

History

  • 25 Nov 2026 21:23 UTC · NVD: first stored (published 6 Nov 2026)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 6 Nov 2026)
  • 25 Nov 2026 20:10 UTC · CVE List: first stored (published 6 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.