{"answers":{"affected":"2 open source packages ship an affected version, including crud-query-parser.","exploited":"There is no known exploitation of CVE-2025-32020 in the wild and no public exploit code.","fix":"Upgrade crud-query-parser to 0.1.0 or later.","what":"CVE-2025-32020 is a critical SQL injection vulnerability in Guichaguri crud-query-parser, published on 8 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-32020 and fix it if it is affected.\n\nWhat it is: CVE-2025-32020 is a critical SQL injection vulnerability in Guichaguri crud-query-parser, published on 8 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-32020 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- crud-query-parser (npm): affected all versions; fixed in 0.1.0\n- crud-query-parser (npm): affected all versions; fixed in 0.1.0\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-2025-32020/ (Markdown: https://insights.sbomify.com/CVE-2025-32020/index.md)","id":"CVE-2025-32020","markdown":"https://insights.sbomify.com/CVE-2025-32020/index.md","name":"CVE-2025-32020","record":{"aliases":["GHSA-9r25-rp3p-h2w4"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"Node.js query parser","requires_auth":"none","summary":"SQL injection in crud-query-parser TypeORM adapter allows attackers to manipulate database queries when ordering is enabled without property filters.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.3,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"The crud-query-parser library parses query parameters from HTTP requests and converts them to database queries. Improper neutralization of the order/sort parameter in the TypeORM adapter, which allows SQL injection. You are impacted by this vulnerability if you are using the TypeORM adapter, ordering is enabled and you have not set-up a property filter.  This vulnerability is fixed in 0.1.0.","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 Neutralization of Special Elements used in an SQL Command ('SQL Injection') in crud-query-parser","id":"CVE-2025-32020","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"sql_injection","year":"2025"},"n_packages":2,"n_references":1,"next":{"headline":"Weblate VCS credentials included in URL parameters are potentially logged and saved into browser history as plaintext","id":"CVE-2025-32021"},"packages":[{"ecosystem":"npm","fixed":["0.1.0"],"introduced":["0"],"last_affected":[],"package":"crud-query-parser","purl":null,"source":"GHSA-9r25-rp3p-h2w4"},{"ecosystem":"npm","fixed":["0.1.0"],"introduced":["0"],"last_affected":[],"package":"crud-query-parser","purl":"pkg:npm/crud-query-parser","source":"GHSA-9r25-rp3p-h2w4"}],"prev":{"headline":"Harbor's repository description page allows for XSS","id":"CVE-2025-32019"},"products":["crud-query-parser"],"published":"2025-04-08","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-08","vendors":["Guichaguri"]},"summary":"SQL injection in crud-query-parser TypeORM adapter allows attackers to manipulate database queries when ordering is enabled without property filters.","url":"https://insights.sbomify.com/CVE-2025-32020/"}