{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-135227 in the wild and no public exploit code.","exposure":"An affected version is only exploitable if your software calls belongs_to. Many projects that include it are not exposed.","fix":"No fix has been published for CVE-2026-135227 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-135227 is a high-severity business logic flaw vulnerability in MongoDB Ruby Driver, published on 25 Nov 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-135227 and fix it if it is affected.\n\nWhat it is: CVE-2026-135227 is a high-severity business logic flaw vulnerability in MongoDB Ruby Driver, published on 25 Nov 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-135227 in the wild and no public exploit code.\nExposure: An affected version is only exploitable if your software calls belongs_to. Many projects that include it are not exposed.\n\nAffected product: MongoDB Ruby Driver. No package-level version data is available, so check the vendor advisory linked from the reference page.\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.\n   If an affected version is present, also search the code for calls to belongs_to and report whether any exist.\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-135227/ (Markdown: https://insights.sbomify.com/CVE-2026-135227/index.md)","id":"CVE-2026-135227","markdown":"https://insights.sbomify.com/CVE-2026-135227/index.md","name":"CVE-2026-135227","record":{"aliases":["GHSA-9h3x-67qv-f384"],"analysis":{"component_type":"library","exploitable_when_present":false,"fix_type":"no_fix_stated","impacts":["data_modify","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby MongoDB ODM","requires_auth":"none","requires_specific_call":true,"summary":"Unauthenticated attackers can pass structured input to Mongoid belongs_to to modify or remove stored records in Ruby apps.","user_interaction":"not_required","vuln_class":"business_logic","vulnerable_functions":["belongs_to"]},"analysis_generated_by":"sbomify/insights-2b-fp8","assigner":"mongodb","component":null,"cpe":[],"cvss":{"score":8.3,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-915","name":"Improperly Controlled Modification of Dynamically-Determined Object Attributes"}],"description":"An improper restriction of dynamically determined object attributes in the object-document mapping library's association handling allows structured input supplied in place of a simple identifier value to be turned into an object that is treated as an already-stored record of a caller-chosen model class. In applications that pass unfiltered request data into the affected association handling, an unauthenticated party may cause unintended modification or removal of stored records, and may render an individual record unreadable through that association.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Improper restriction of object attributes in Mongoid belongs_to assignment","id":"CVE-2026-135227","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"business_logic","year":"2026"},"main_cpe":null,"main_fixed":[],"main_package":null,"n_packages":0,"n_references":1,"n_vendor_status":0,"next":{"headline":"Mass assignment guard bypass in the Laravel MongoDB Eloquent integration","id":"CVE-2026-135228"},"nickname":null,"packages":[],"prev":{"headline":"Type confusion in DBPointer handling in BSON Ruby Extended JSON parsing","id":"CVE-2026-135226"},"products":["Ruby Driver"],"published":"2026-11-25","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"partial"},"state":"PUBLISHED","text_fixes":[],"updated":"2026-11-25","vendor_status":[],"vendors":["MongoDB"]},"summary":"Unauthenticated attackers can pass structured input to Mongoid belongs_to to modify or remove stored records in Ruby apps.","url":"https://insights.sbomify.com/CVE-2026-135227/"}