{"answers":{"affected":"3 open source packages ship an affected version, including pymongo.","exploited":"There is no known exploitation of CVE-2026-96748 in the wild and no public exploit code.","fix":"Upgrade pymongo to 4.18.2 or later.","what":"CVE-2026-96748 is a high-severity server-side request forgery vulnerability in MongoDB Python Driver, published on 24 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-96748 and fix it if it is affected.\n\nWhat it is: CVE-2026-96748 is a high-severity server-side request forgery vulnerability in MongoDB Python Driver, published on 24 Sep 2026. 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-2026-96748 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- pymongo (PyPI): affected from 3.5.0; fixed in 4.18.2\n- pymongo (PyPI): affected from 3.5.0; fixed in 4.18.2\n- pymongo (PyPI): affected from 3.5.0; fixed in 4.18.2\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-2026-96748/ (Markdown: https://insights.sbomify.com/CVE-2026-96748/index.md)","id":"CVE-2026-96748","markdown":"https://insights.sbomify.com/CVE-2026-96748/index.md","name":"CVE-2026-96748","record":{"aliases":["AZL-105107","DEBIAN-CVE-2026-96748","ECHO-130e-9a6b-8aff","GHSA-vp6j-j7w5-5xjj","MINI-gqc7-xmpr-w538","PYSEC-2026-4297","ROOT-APP-PYPI-CVE-2026-96748","UBUNTU-CVE-2026-96748"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Python MongoDB driver","requires_auth":"none","summary":"Attackers can inject percent-encoded delimiters in connection strings to redirect database traffic to malicious servers, allowing observation and alteration of data.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mongodb","cpe":[],"cvss":{"score":8.3,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-177","name":"Improper Handling of URL Encoding (Hex Encoding)"}],"description":"PyMongo's connection string parsing decodes percent-encoded characters in the host portion before the host list is separated on its delimiters. When an application places a hostname value supplied by an unauthenticated party into a connection string, that party may cause additional servers of their choosing to be added to the application's database client. The application may then send its authentication exchange and database operations to one of those servers, which can observe limited information and return altered results.","ecosystems":["PyPI"],"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":"Connection redirection via percent-encoded delimiter injection in connection string hosts","id":"CVE-2026-96748","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"ssrf","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"Heap out-of-bounds write via signed size overflow in BSON document encoding","id":"CVE-2026-96749"},"packages":[{"ecosystem":"PyPI","fixed":["4.18.2"],"introduced":["3.5.0"],"last_affected":[],"package":"pymongo","purl":null,"source":"GHSA-vp6j-j7w5-5xjj"},{"ecosystem":"PyPI","fixed":["4.18.2"],"introduced":["3.5.0"],"last_affected":[],"package":"pymongo","purl":"pkg:pypi/pymongo","source":"GHSA-vp6j-j7w5-5xjj"},{"ecosystem":"PyPI","fixed":["4.18.2"],"introduced":["3.5.0"],"last_affected":[],"package":"pymongo","purl":"pkg:pypi/pymongo","source":"PYSEC-2026-4297"}],"prev":{"headline":"Forced local Unix socket connection via dot-sock KMS endpoint in client-side field encryption","id":"CVE-2026-96747"},"products":["Python Driver"],"published":"2026-09-24","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":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-24","vendors":["MongoDB"]},"summary":"Attackers can inject percent-encoded delimiters in connection strings to redirect database traffic to malicious servers, allowing observation and alteration of data.","url":"https://insights.sbomify.com/CVE-2026-96748/"}