{"answers":{"affected":"9 open source packages ship an affected version, including mongoose. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-53900 exists.","fix":"Upgrade mongoose to a fixed version for your release line: 6.13.5, 8.8.3, 5.13.23 or 7.8.3.","what":"CVE-2024-53900 is a critical vulnerability in n/a, published on 2 Dec 2024."},"fix_prompt":"Check this codebase for CVE-2024-53900 and fix it if it is affected.\n\nWhat it is: CVE-2024-53900 is a critical vulnerability in n/a, published on 2 Dec 2024. \nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-53900 exists.\n\nAffected packages and fixed versions:\n- mongoose (Bitnami): affected all versions; fixed in 6.13.5, 8.8.3\n- mongoose (npm): affected from 3.6.0-rc0; fixed in 5.13.23\n- mongoose (npm): affected from 3.6.0-rc0; fixed in 5.13.23\n- mongoose (npm): affected from 6.0.0-rc0; fixed in 6.13.5\n- mongoose (npm): affected from 6.0.0-rc0; fixed in 6.13.5\n- mongoose (npm): affected from 7.0.0-rc0; fixed in 7.8.3\n- mongoose (npm): affected from 7.0.0-rc0; fixed in 7.8.3\n- mongoose (npm): affected from 8.0.0-rc0; fixed in 8.8.3\n- mongoose (npm): affected from 8.0.0-rc0; fixed in 8.8.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-2024-53900/ (Markdown: https://insights.sbomify.com/CVE-2024-53900/index.md)","id":"CVE-2024-53900","markdown":"https://insights.sbomify.com/CVE-2024-53900/index.md","name":"CVE-2024-53900","record":{"aliases":["BIT-mongoose-2024-53900","CLSA-2026-1774916718","GHSA-m7xq-9374-9rvx","ROOT-APP-NPM-CVE-2024-53900"],"analysis":null,"analysis_generated_by":null,"assigner":"mitre","cpe":[{"product":"mongoose","vendor":"mongoosejs"}],"cvss":{"score":9.1,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.","ecosystems":["Bitnami","npm"],"exploits":{"exploitdb":0,"first_seen":"2025-04-03","github_poc":2,"max_poc_stars":0,"metasploit":0,"nuclei":1,"refs":[{"date":"2025-04-03T17:01:32Z","kind":"github_poc","ref":"https://github.com/Gokul-Krishnan-V-R/CVE-2024-53900","stars":0,"title":"Mongo Vulnub Lab...Try to Hack IT.....!"},{"date":"2025-08-19T10:20:33Z","kind":"github_poc","ref":"https://github.com/www-spam/CVE-2024-53900","stars":0,"title":null},{"date":null,"kind":"nuclei","ref":"http/cves/2024/CVE-2024-53900.yaml","stars":null,"title":"Mongoose \u003c 8.8.3 - Remote Code Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"Mongoose search injection vulnerability","id":"CVE-2024-53900","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":null,"year":"2024"},"n_packages":9,"n_references":5,"next":{"headline":"Memory corruption in n/a","id":"CVE-2024-53901"},"packages":[{"ecosystem":"Bitnami","fixed":["6.13.5","8.8.3"],"introduced":["0","7.0.0"],"last_affected":[],"package":"mongoose","purl":"pkg:bitnami/mongoose","source":"BIT-mongoose-2024-53900"},{"ecosystem":"npm","fixed":["5.13.23"],"introduced":["3.6.0-rc0"],"last_affected":[],"package":"mongoose","purl":null,"source":"GHSA-m7xq-9374-9rvx"},{"ecosystem":"npm","fixed":["5.13.23"],"introduced":["3.6.0-rc0"],"last_affected":[],"package":"mongoose","purl":"pkg:npm/mongoose","source":"GHSA-m7xq-9374-9rvx"},{"ecosystem":"npm","fixed":["6.13.5"],"introduced":["6.0.0-rc0"],"last_affected":[],"package":"mongoose","purl":null,"source":"GHSA-m7xq-9374-9rvx"},{"ecosystem":"npm","fixed":["6.13.5"],"introduced":["6.0.0-rc0"],"last_affected":[],"package":"mongoose","purl":"pkg:npm/mongoose","source":"GHSA-m7xq-9374-9rvx"},{"ecosystem":"npm","fixed":["7.8.3"],"introduced":["7.0.0-rc0"],"last_affected":[],"package":"mongoose","purl":null,"source":"GHSA-m7xq-9374-9rvx"},{"ecosystem":"npm","fixed":["7.8.3"],"introduced":["7.0.0-rc0"],"last_affected":[],"package":"mongoose","purl":"pkg:npm/mongoose","source":"GHSA-m7xq-9374-9rvx"},{"ecosystem":"npm","fixed":["8.8.3"],"introduced":["8.0.0-rc0"],"last_affected":[],"package":"mongoose","purl":null,"source":"GHSA-m7xq-9374-9rvx"},{"ecosystem":"npm","fixed":["8.8.3"],"introduced":["8.0.0-rc0"],"last_affected":[],"package":"mongoose","purl":"pkg:npm/mongoose","source":"GHSA-m7xq-9374-9rvx"}],"prev":{"headline":"virtualenv allows command injection through activation scripts for a virtual environment","id":"CVE-2024-53899"},"products":["n/a"],"published":"2024-12-02","related":[{"cvss_score":10,"headline":"Prototype Pollution in automattic/mongoose","id":"CVE-2023-3696","kev_date_added":null,"published":"2023-07-17"},{"cvss_score":9.1,"headline":"Improper Input Validation in Automattic Mongoose","id":"CVE-2019-17426","kev_date_added":null,"published":"2019-10-10"},{"cvss_score":9,"headline":"Mongoose search injection vulnerability","id":"CVE-2025-23061","kev_date_added":null,"published":"2025-01-15"},{"cvss_score":7.5,"headline":"Mongoose: Improper Sanitization of $nor in sanitizeFilter May Allow NoSQL Injection","id":"CVE-2026-42334","kev_date_added":null,"published":"2026-05-14"},{"cvss_score":7,"headline":"Prototype Pollution in automattic/mongoose","id":"CVE-2022-2564","kev_date_added":null,"published":"2022-07-28"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"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)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-01-06","vendors":["n/a"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2024-53900/"}