Skip to main content

Saxy CVE-2026-66293

| EUVDEUVD-2026-118185 LOW
XML Injection (aka Blind XPath Injection) (CWE-91)
2026-11-06 EEF GHSA-7h52-pqgv-pcwc
2.1
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit text containing '-->' as comment input
  2. Delivery
    Saxy encoder wraps it unescaped in <!-- -->
  3. Exploit
    Early comment close injects sibling markup
  4. Execution
    Downstream HTML/SVG parser renders injected elements
  5. Impact
    Stored XSS executes in victim browser

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization XPath query parameterization
Exploitation Conditions

Exploitation requires an application running an affected Saxy version (0.7.0 up to but not including 1.7.0) that serializes attacker-controlled text as an XML comment - specifically via Saxy.XML.comment/1 or a raw {:comment, text} simple-form child passed to Saxy.Encoder (Saxy.encode!/2 or Saxy.encode_to_iodata!/2) - because escape_comment/2 returns comment content unchanged and never neutralizes an interior '--' or a full '-->'. Impact only materializes downstream: the serialized output must then be rendered as HTML or SVG (yielding stored XSS) or consumed by another XML processor (yielding forged/injected data). Limiting factors: documents that Saxy only parses are not a vector; the application must actually place untrusted input into a comment node, which is a specific, non-default usage pattern rather than Saxy's typical element/attribute encoding, so applications that never emit comments from untrusted data are unaffected.

Impact

Signals are consistent and point to a genuinely low real-world priority. The vendor CVSS 4.0 vector (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) yields a base score of 2.1, driven by the AT:P 'attack requirements' flag - exploitation is not possible against Saxy by itself but only when an application happens to serialize attacker-controlled text as an XML comment. There is no CISA KEV listing and no EPSS score was supplied, so there is no quantitative exploitation-probability signal to weigh; absence of EPSS/KEV is not evidence of safety but, combined with the vuln.today 'monitor' decision label, indicates this is not treated as an active-exploitation emergency. No PoC or exploit reference is present in the input (the GitHub links are advisory and patch commits, not exploit code), so the status is no public exploit identified at time of analysis. One point of tension worth flagging explicitly: the vendor rated this AV:L (local), yet the described impact is stored XSS / XML data forgery that in a typical web deployment would be driven by remotely-supplied input - the local vector appears to reflect the library/configuration-dependent trigger rather than true physical/local-only access, so the AV metric should be read with that caveat and verified against the specific application's data flow. Net: a real, confirmed injection weakness in a library, but a low-severity, condition-gated one - patch on a normal maintenance cadence rather than as an emergency.

Exploit ScenarioDerived

An Elixir web application uses Saxy to build an XML/HTML/SVG document and serializes a user-supplied value (for example a profile note) into an XML comment via Saxy.XML.comment/1. Because the affected Saxy.Encoder does not neutralize the '-->' sequence, the attacker submits text containing '-->' followed by '<script>...' to close the comment early and inject sibling markup, which executes as stored XSS when a victim's browser renders the output. No public exploit code was identified in the provided sources; the attack requires the application to feed untrusted input into the comment encoder.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 06, 2026

Comment-node XML injection in the Saxy Elixir XML library (versions 0.7.0 up to but not including 1.7.0) lets attacker-controlled text that an application serializes as a comment escape the <!-- ... --> delimiters and inject sibling markup into the encoded document. The impact materializes only downstream: when the serialized output is rendered as HTML or SVG the injected markup executes as stored cross-site scripting, and when it is consumed by another XML processor the attacker can forge elements, attributes and text the producing application never built. The trigger is a specific usage pattern - passing untrusted text through Saxy.XML.comment/1 or a raw {:comment, text} simple-form child to Saxy.encode!/2 or Saxy.encode_to_iodata!/2 - so applications that only parse XML or never emit comments from untrusted data are unaffected; no public exploit identified at time of analysis, and our assessment scores it integrity-only with changed scope (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N, unauthenticated per the vector), which is higher than the vendor's CVSS 4.0 score of 2.1 because the vendor rates it local with attack prerequisites.

RemediationAI

Upgrade the saxy dependency to 1.7.0 or later, which is the first release outside the affected 'from 0.7.0 before 1.7.0' range; the encoder fix is in commit https://github.com/qcam/saxy/commit/6d12ee12b9e32e86ef598b3f3cafccd1840b2f41 (with a companion documentation commit at https://github.com/qcam/saxy/commit/7266632e9407842f28ffac254c56dc41210a5690), and the advisory https://github.com/qcam/saxy/security/advisories/GHSA-mm3m-xwmf-v698 lists the affected and patched versions. Because the vulnerable behaviour is that escape_comment/2 passes comment content through unchanged, there is no encoder flag or escaping mode to switch on as an interim measure; the practical compensating control is application-side - never route untrusted strings into Saxy comment nodes, keeping comment content static and reserving dynamic data for element text or attributes, whose encoders are unaffected. If dynamic comment content is unavoidable before the upgrade, reject or filter values containing '--' (which also covers the '-->' terminator) before they reach the encoder, accepting that this restricts the permitted content, and additionally ensure any HTML/SVG rendering or downstream XML consumption escapes or validates the serialized output, so injected sibling markup cannot execute or be interpreted. Given the vuln.today decision label of monitor, the low vendor score (CVSS 4.0 2.1), and the absence of identified public exploit code, upgrading can be scheduled through normal dependency maintenance, with priority raised for services that demonstrably place user input into comments and render the result as HTML or SVG.

Affected VersionsENISA

saxy 0.7.0 <1.7.0
saxy 7266632e9407842f28ffac254c56dc41210a5690 <6d12ee12b9e32e86ef598b3f3cafccd1840b2f41

Affected Packages

euvd saxy fix: 1.7.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Saxy is an Elixir library that implements a SAX parser for XML 1.0 (fifth edition) plus, since 0.7.x, an encoder built around "simple form" tuples such as {"person", [{"gender", "female"}], [{:characters, "Alice"}]} and the Saxy.Builder protocol; Saxy.encode!/2 and Saxy.encode_to_iodata!/2 pipe that simple form through Saxy.Encoder. The flaw sits in the encoder's escape_comment/2 helper: every clause returns the comment binary unchanged and only appends a space when the content ends in a single '-', so neither an interior '--' (forbidden by the XML 1.0 comment production) nor a terminating '-->' is escaped or rejected before the encoder wraps the text in <!-- and -->. This is CWE-91 (XML Injection): an output-encoding failure rather than a parser bug, which is why documents Saxy merely parses are explicitly not a vector. A consumer that later parses the emitted document sees whatever elements, attributes and text the attacker closed the comment with; in an HTML or SVG rendering context those injected nodes become script, and in an XML processing context they become forged business data. The vulnerability is deployment-dependent - it only matters where dynamic, untrusted strings reach a comment node, which is not Saxy's typical element/attribute encoding path. Note the scoring divergence: the CNA's CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N, 2.1) assumes local attack and present prerequisites, whereas our assessment treats the reachable path as network-delivered and unauthenticated through the vulnerable application's own input handling and adds changed scope because the injected markup affects the consuming renderer/processor, not Saxy itself. Supporting material: GHSA-mm3m-xwmf-v698, the EEF/CNA advisory, OSV EEF-CVE-2026-66293, and patch commit 6d12ee12b9e32e86ef598b3f3cafccd1840b2f41 with accompanying documentation commit 7266632e9407842f28ffac254c56dc41210a5690.

Know when Saxy gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (EEF) PRIMARY 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
vuln.today AI 5.8 MEDIUM

Attacker-supplied text typically arrives over the network (AV:N), needs no privileges, and the injected markup affects a separate downstream parser/browser (S:C) with integrity-only impact (I:L).

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Low
Elixir-only XML library; niche ecosystem, no broad enterprise footprint
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Low

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy