{"answers":{"affected":"4 open source packages ship an affected version, including mongoose. It affects 1 product.","exploited":"There is no known exploitation of CVE-2019-17426 in the wild and no public exploit code.","fix":"Upgrade mongoose to a fixed version for your release line: 4.13.21 or 5.7.5.","what":"CVE-2019-17426 is a critical vulnerability in n/a, published on 10 Oct 2019."},"fix_prompt":"Check this codebase for CVE-2019-17426 and fix it if it is affected.\n\nWhat it is: CVE-2019-17426 is a critical vulnerability in n/a, published on 10 Oct 2019. \nExploitation: There is no known exploitation of CVE-2019-17426 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mongoose (npm): affected all versions; fixed in 4.13.21\n- mongoose (npm): affected all versions; fixed in 4.13.21\n- mongoose (npm): affected from 5.0.0; fixed in 5.7.5\n- mongoose (npm): affected from 5.0.0; fixed in 5.7.5\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-2019-17426/ (Markdown: https://insights.sbomify.com/CVE-2019-17426/index.md)","id":"CVE-2019-17426","markdown":"https://insights.sbomify.com/CVE-2019-17426/index.md","name":"CVE-2019-17426","record":{"aliases":["GHSA-8687-vv9j-hgph"],"analysis":null,"analysis_generated_by":null,"assigner":"mitre","cpe":[{"product":"mongoose","vendor":"mongoosejs"}],"cvss":{"score":9.1,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[],"description":"Automattic Mongoose through 5.7.4 allows attackers to bypass access control (in some applications) because any query object with a _bsontype attribute is ignored. For example, adding \"_bsontype\":\"a\" can sometimes interfere with a query filter. NOTE: this CVE is about Mongoose's failure to work around this _bsontype special case that exists in older versions of the bson parser (aka the mongodb/js-bson project).","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":true,"headline":"Improper Input Validation in Automattic Mongoose","id":"CVE-2019-17426","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2019"},"n_packages":4,"n_references":2,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2019-17427"},"packages":[{"ecosystem":"npm","fixed":["4.13.21"],"introduced":["0"],"last_affected":[],"package":"mongoose","purl":null,"source":"GHSA-8687-vv9j-hgph"},{"ecosystem":"npm","fixed":["4.13.21"],"introduced":["0"],"last_affected":[],"package":"mongoose","purl":"pkg:npm/mongoose","source":"GHSA-8687-vv9j-hgph"},{"ecosystem":"npm","fixed":["5.7.5"],"introduced":["5.0.0"],"last_affected":[],"package":"mongoose","purl":null,"source":"GHSA-8687-vv9j-hgph"},{"ecosystem":"npm","fixed":["5.7.5"],"introduced":["5.0.0"],"last_affected":[],"package":"mongoose","purl":"pkg:npm/mongoose","source":"GHSA-8687-vv9j-hgph"}],"prev":{"headline":"Memory corruption in n/a","id":"CVE-2019-17424"},"products":["n/a"],"published":"2019-10-10","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":"Mongoose search injection vulnerability","id":"CVE-2024-53900","kev_date_added":null,"published":"2024-12-02"},{"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":"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":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2019-17426/"}