{"answers":{"affected":"2 open source packages ship an affected version, including datatables.net. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-23445 exists.","fix":"Upgrade datatables.net to 1.11.3 or later.","what":"CVE-2021-23445 is a low-severity cross-site scripting vulnerability in datatables.net, published on 27 Sep 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-23445 and fix it if it is affected.\n\nWhat it is: CVE-2021-23445 is a low-severity cross-site scripting vulnerability in datatables.net, published on 27 Sep 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-23445 exists.\n\nAffected packages and fixed versions:\n- datatables.net (npm): affected all versions; fixed in 1.11.3\n- datatables.net (npm): affected all versions; fixed in 1.11.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-23445/ (Markdown: https://insights.sbomify.com/CVE-2021-23445/index.md)","id":"CVE-2021-23445","markdown":"https://insights.sbomify.com/CVE-2021-23445/index.md","name":"CVE-2021-23445","record":{"aliases":["AZL-66567","DEBIAN-CVE-2021-23445","DLA-3529-1","GHSA-h73q-5wmj-q8pj","UBUNTU-CVE-2021-23445"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript data table library","requires_auth":"none","summary":"An attacker can execute arbitrary scripts via unescaped array inputs in the HTML escape function of the datatables.net library.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"datatables.net","vendor":"datatables"}],"cvss":{"score":3.1,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N/E:P","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"This affects the package datatables.net before 1.11.3. If an array is passed to the HTML escape entities function it would not have its contents escaped.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Cross-site Scripting (XSS)","id":"CVE-2021-23445","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2021"},"n_packages":2,"n_references":7,"next":{"headline":"Regular Expression Denial of Service (ReDoS)","id":"CVE-2021-23446"},"packages":[{"ecosystem":"npm","fixed":["1.11.3"],"introduced":["0"],"last_affected":[],"package":"datatables.net","purl":null,"source":"GHSA-h73q-5wmj-q8pj"},{"ecosystem":"npm","fixed":["1.11.3"],"introduced":["0"],"last_affected":[],"package":"datatables.net","purl":"pkg:npm/datatables.net","source":"GHSA-h73q-5wmj-q8pj"}],"prev":{"headline":"Prototype Pollution","id":"CVE-2021-23444"},"products":["datatables.net"],"published":"2021-09-27","related":[{"cvss_score":7.3,"headline":"Prototype Pollution","id":"CVE-2020-28458","kev_date_added":null,"published":"2020-12-16"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-16","vendors":["n/a"]},"summary":"An attacker can execute arbitrary scripts via unescaped array inputs in the HTML escape function of the datatables.net library.","url":"https://insights.sbomify.com/CVE-2021-23445/"}