{"answers":{"affected":"2 open source packages ship an affected version, including mongo-express. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-23372 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2021-23372 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-23372 is a medium-severity denial of service vulnerability in mongo-express, published on 13 Apr 2021. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-23372 and fix it if it is affected.\n\nWhat it is: CVE-2021-23372 is a medium-severity denial of service vulnerability in mongo-express, published on 13 Apr 2021. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-23372 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mongo-express (npm): affected all versions up to 0.54.0; no fix listed\n- mongo-express (npm): affected all versions up to 0.54.0; 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-23372/ (Markdown: https://insights.sbomify.com/CVE-2021-23372/index.md)","id":"CVE-2021-23372","markdown":"https://insights.sbomify.com/CVE-2021-23372/index.md","name":"CVE-2021-23372","record":{"aliases":["GHSA-m2r3-8492-vx59"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"MongoDB web admin","requires_auth":"high_privilege","summary":"Attackers can crash the mongo-express application by exporting an empty collection as CSV, causing a denial of service.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"mongo-express","vendor":"mongo-express_project"}],"cvss":{"score":4.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions"}],"description":"All versions of package mongo-express are vulnerable to Denial of Service (DoS) when exporting an empty collection as CSV, due to an unhandled exception, leading to a crash.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Denial of Service (DoS)","id":"CVE-2021-23372","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":"Prototype Pollution","id":"CVE-2021-23373"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["0.54.0"],"package":"mongo-express","purl":null,"source":"GHSA-m2r3-8492-vx59"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["0.54.0"],"package":"mongo-express","purl":"pkg:npm/mongo-express","source":"GHSA-m2r3-8492-vx59"}],"prev":{"headline":"Regular Expression Denial of Service (ReDoS)","id":"CVE-2021-23371"},"products":["mongo-express"],"published":"2021-04-13","related":[{"cvss_score":9.9,"headline":"MongoDB mongo-express Remote Code Execution","id":"CVE-2019-10758","kev_date_added":"2021-12-10","published":"2019-12-24"},{"cvss_score":9.8,"headline":"Remote code execution in mongo-express","id":"CVE-2020-24391","kev_date_added":null,"published":"2021-03-30"},{"cvss_score":8.1,"headline":"XSS Vulnerability in mongo-express","id":"CVE-2021-21422","kev_date_added":null,"published":"2021-06-21"},{"cvss_score":6.1,"headline":"mongo-express Cross-site Request Forgery vulnerability","id":"CVE-2023-52555","kev_date_added":null,"published":"2024-03-01"}],"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["n/a"]},"summary":"Attackers can crash the mongo-express application by exporting an empty collection as CSV, causing a denial of service.","url":"https://insights.sbomify.com/CVE-2021-23372/"}