← Back to CVE Explorer

CVE-2026-66293

Full vulnerability record from the local CVENow database.

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.

Severity
LOW
CVSS score
2.1 (v4.0)
Vulnerability status
Received
Source identifier
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Published
2026-11-06 11:17:16.057000
Last modified
2026-11-06 11:17:16.057000
View original CVE JSON
{
  "id": "CVE-2026-66293",
  "sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
  "published": "2026-11-06T11:17:16.057",
  "lastModified": "2026-11-06T11:17:16.057",
  "vulnStatus": "Received",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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.\n\nWhen 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.\n\nThis issue affects saxy: from 0.7.0 before 1.7.0."
    }
  ],
  "affected": [
    {
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "affectedData": [
        {
          "vendor": "qcam",
          "product": "saxy",
          "defaultStatus": "unaffected",
          "collectionURL": "https://repo.hex.pm",
          "packageName": "saxy",
          "cpes": [
            "cpe:2.3:a:qcam:saxy:*:*:*:*:*:*:*:*"
          ],
          "modules": [
            "'Elixir.Saxy'",
            "'Elixir.Saxy.Encoder'",
            "'Elixir.Saxy.XML'"
          ],
          "programFiles": [
            "lib/saxy.ex",
            "lib/saxy/encoder.ex",
            "lib/saxy/xml.ex"
          ],
          "programRoutines": [
            {
              "name": "'Elixir.Saxy':encode!/2"
            },
            {
              "name": "'Elixir.Saxy':encode_to_iodata!/2"
            },
            {
              "name": "'Elixir.Saxy.XML':comment/1"
            }
          ],
          "repo": "https://github.com/qcam/saxy",
          "packageURL": "pkg:hex/saxy",
          "versions": [
            {
              "version": "0.7.0",
              "lessThan": "1.7.0",
              "versionType": "semver",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "qcam",
          "product": "saxy",
          "defaultStatus": "unaffected",
          "collectionURL": "https://github.com",
          "packageName": "qcam/saxy",
          "cpes": [
            "cpe:2.3:a:qcam:saxy:*:*:*:*:*:*:*:*"
          ],
          "modules": [
            "'Elixir.Saxy'",
            "'Elixir.Saxy.Encoder'",
            "'Elixir.Saxy.XML'"
          ],
          "programFiles": [
            "lib/saxy.ex",
            "lib/saxy/encoder.ex",
            "lib/saxy/xml.ex"
          ],
          "programRoutines": [
            {
              "name": "'Elixir.Saxy':encode!/2"
            },
            {
              "name": "'Elixir.Saxy':encode_to_iodata!/2"
            },
            {
              "name": "'Elixir.Saxy.XML':comment/1"
            }
          ],
          "repo": "https://github.com/qcam/saxy",
          "packageURL": "pkg:github/qcam/saxy",
          "versions": [
            {
              "version": "7266632e9407842f28ffac254c56dc41210a5690",
              "lessThan": "6d12ee12b9e32e86ef598b3f3cafccd1840b2f41",
              "versionType": "git",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV40": [
      {
        "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "type": "Secondary",
        "cvssData": {
          "version": "4.0",
          "vectorString": "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",
          "baseScore": 2.1,
          "baseSeverity": "LOW",
          "attackVector": "LOCAL",
          "attackComplexity": "LOW",
          "attackRequirements": "PRESENT",
          "privilegesRequired": "NONE",
          "userInteraction": "NONE",
          "vulnConfidentialityImpact": "NONE",
          "vulnIntegrityImpact": "LOW",
          "vulnAvailabilityImpact": "NONE",
          "subConfidentialityImpact": "LOW",
          "subIntegrityImpact": "LOW",
          "subAvailabilityImpact": "NONE",
          "exploitMaturity": "NOT_DEFINED",
          "confidentialityRequirement": "NOT_DEFINED",
          "integrityRequirement": "NOT_DEFINED",
          "availabilityRequirement": "NOT_DEFINED",
          "modifiedAttackVector": "NOT_DEFINED",
          "modifiedAttackComplexity": "NOT_DEFINED",
          "modifiedAttackRequirements": "NOT_DEFINED",
          "modifiedPrivilegesRequired": "NOT_DEFINED",
          "modifiedUserInteraction": "NOT_DEFINED",
          "modifiedVulnConfidentialityImpact": "NOT_DEFINED",
          "modifiedVulnIntegrityImpact": "NOT_DEFINED",
          "modifiedVulnAvailabilityImpact": "NOT_DEFINED",
          "modifiedSubConfidentialityImpact": "NOT_DEFINED",
          "modifiedSubIntegrityImpact": "NOT_DEFINED",
          "modifiedSubAvailabilityImpact": "NOT_DEFINED",
          "Safety": "NOT_DEFINED",
          "Automatable": "NOT_DEFINED",
          "Recovery": "NOT_DEFINED",
          "valueDensity": "NOT_DEFINED",
          "vulnerabilityResponseEffort": "NOT_DEFINED",
          "providerUrgency": "NOT_DEFINED"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-91"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://cna.erlef.org/cves/CVE-2026-66293.html",
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
    },
    {
      "url": "https://github.com/qcam/saxy/commit/6d12ee12b9e32e86ef598b3f3cafccd1840b2f41",
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
    },
    {
      "url": "https://github.com/qcam/saxy/commit/7266632e9407842f28ffac254c56dc41210a5690",
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
    },
    {
      "url": "https://github.com/qcam/saxy/security/advisories/GHSA-mm3m-xwmf-v698",
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
    },
    {
      "url": "https://osv.dev/vulnerability/EEF-CVE-2026-66293",
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
    }
  ]
}