{"answers":{"affected":"2 open source packages ship an affected version, including mootools. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-32821 exists.","fix":"No fix has been published for CVE-2021-32821 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-32821 is a medium-severity denial of service vulnerability in mootools-core, published on 3 Jan 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-32821 and fix it if it is affected.\n\nWhat it is: CVE-2021-32821 is a medium-severity denial of service vulnerability in mootools-core, published on 3 Jan 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-32821 exists.\n\nAffected packages and fixed versions:\n- mootools (npm): affected all versions up to 1.5.2; no fix listed\n- mootools (npm): affected all versions up to 1.5.2; no fix listed\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-32821/ (Markdown: https://insights.sbomify.com/CVE-2021-32821/index.md)","id":"CVE-2021-32821","markdown":"https://insights.sbomify.com/CVE-2021-32821/index.md","name":"CVE-2021-32821","record":{"aliases":["DEBIAN-CVE-2021-32821","GHSA-v63q-hgqc-qvpg","UBUNTU-CVE-2021-32821"],"analysis":{"component_type":"library","fix_type":"no_fix_stated","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"JavaScript utility library","requires_auth":"none","summary":"Attackers can cause denial of service in MooTools by injecting malicious strings into CSS selectors, exploiting a vulnerable regex parser.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"mootools","vendor":"mootools"}],"cvss":{"score":6.2,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"MooTools is a collection of JavaScript utilities for JavaScript developers. All known versions include a CSS selector parser that is vulnerable to Regular Expression Denial of Service (ReDoS). An attack requires that an attacker can inject a string into a CSS selector at runtime, which is quite common with e.g. jQuery CSS selectors. No patches are available for this issue.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Regular expression Denial of Service in MooTools","id":"CVE-2021-32821","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2021"},"n_packages":2,"n_references":1,"next":{"headline":"File disclosure in hbs","id":"CVE-2021-32822"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["1.5.2"],"package":"mootools","purl":null,"source":"GHSA-v63q-hgqc-qvpg"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["1.5.2"],"package":"mootools","purl":"pkg:npm/mootools","source":"GHSA-v63q-hgqc-qvpg"}],"prev":{"headline":"File disclosure in Express Handlebars","id":"CVE-2021-32820"},"products":["mootools-core"],"published":"2023-01-03","related":[],"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":"2025-03-10","vendors":["mootools"]},"summary":"Attackers can cause denial of service in MooTools by injecting malicious strings into CSS selectors, exploiting a vulnerable regex parser.","url":"https://insights.sbomify.com/CVE-2021-32821/"}