CVE-2026-66295
Processing instruction target and content emitted unescaped in Saxy encoder allows XML injection
Mitigation
- Upgrade saxy to 1.7.0 or later.
- Upgrade saxy to 4aeb80e2acc318f57bd7453ad2eafd59101a90e0 or later.
- Vendor workaround: Do not place untrusted data in processing instructions. Where a dynamic value is unavoidable, validate it before building the node: reject any content containing ?>, and reject any target that does not match the XML Name production or that equals xml case-insensitively. Alternatively, carry the value in element content or an attribute instead, both of which the encoder escapes.
Who should check
- Anyone running qcam saxy >= 0.7.0, < 1.7.0
- Anyone running qcam saxy >= 7266632e9407842f28ffac254c56dc41210a5690, < 4aeb80e2acc318f57bd7453ad2eafd59101a90e0
Vulnerability facts
- Affected
- qcam saxy >= 0.7.0, < 1.7.0; qcam saxy >= 7266632e9407842f28ffac254c56dc41210a5690, < 4aeb80e2acc318f57bd7453ad2eafd59101a90e0
- Fixed in
- qcam saxy 1.7.0, qcam saxy 4aeb80e2acc318f57bd7453ad2eafd59101a90e0
- 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:N/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: None
- 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
Saxy's XML encoder writes the target and the content of a processing instruction into the output document verbatim, without validation or escaping. The encoder builds the construct by concatenating both fields between <? and ?>, so neither field is checked against the constraints the XML specification places on it. Because ?> terminates a processing instruction, a target or content value containing that sequence closes the construct at a position the attacker chooses. Everything the attacker writes after it is emitted as ordinary markup at document level, which allows arbitrary elements, attributes, and further processing instructions to be injected into the serialized document. Appending a matching <? keeps the encoder's own terminator well-formed, so the result still parses and the injection is silent rather than a visible corruption. The target is additionally unconstrained by the XML Name production, which permits injection before the remainder of the processing instruction. The result is XML injection into a serialized document: the tree the application asks Saxy to encode and the tree a downstream parser reads back are no longer the same. Character data, attribute values, and comments are all escaped by the encoder, so processing instructions are the one construct that passes user bytes through untouched. Since Saxy.XML.processing_instruction/2 is a documented public builder, an application inherits the flaw without misusing the API. The consequences depend on what consumes the XML: forged records in a feed or export read by another system, injected stylesheet or rendering directives, or active content where the output is served to a browser as XML or SVG. 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-66295. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-66295.md Affected: qcam saxy >= 0.7.0, < 1.7.0; qcam saxy >= 7266632e9407842f28ffac254c56dc41210a5690, < 4aeb80e2acc318f57bd7453ad2eafd59101a90e0 Fixed in: qcam saxy 1.7.0, qcam saxy 4aeb80e2acc318f57bd7453ad2eafd59101a90e0 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-66295 being exploited?
There is no confirmed exploitation: CVE-2026-66295 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-66295?
Low: CVSS 2.1 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2026-66295?
qcam saxy >= 0.7.0, < 1.7.0; qcam saxy >= 7266632e9407842f28ffac254c56dc41210a5690, < 4aeb80e2acc318f57bd7453ad2eafd59101a90e0.
Is there a fix for CVE-2026-66295?
Yes. Fixed in qcam saxy 1.7.0, qcam saxy 4aeb80e2acc318f57bd7453ad2eafd59101a90e0. Upgrade saxy to 1.7.0 or later. Upgrade saxy to 4aeb80e2acc318f57bd7453ad2eafd59101a90e0 or later. Vendor workaround: Do not place untrusted data in processing instructions. Where a dynamic value is unavoidable, validate it before building the node: reject any content containing ?>, and reject any target that does not match the XML Name production or that equals xml case-insensitively. Alternatively, carry the value in element content or an attribute instead, both of which the encoder escapes.
How do I check if I'm affected by CVE-2026-66295?
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.