{"answers":{"affected":"4 open source packages ship an affected version, including mongoose.","exploited":"There is no known exploitation of GHSA-r5xw-q988-826m in the wild and no public exploit code.","fix":"Upgrade mongoose to a fixed version for your release line: 3.8.39 or 4.3.6.","what":"GHSA-r5xw-q988-826m is a vulnerability in mongoose, published on 1 Sep 2020. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-r5xw-q988-826m and fix it if it is affected.\n\nWhat it is: GHSA-r5xw-q988-826m is a vulnerability in mongoose, published on 1 Sep 2020. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-r5xw-q988-826m in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mongoose (npm): affected from 3.5.5; fixed in 3.8.39\n- mongoose (npm): affected from 3.5.5; fixed in 3.8.39\n- mongoose (npm): affected from 4.0.0; fixed in 4.3.6\n- mongoose (npm): affected from 4.0.0; fixed in 4.3.6\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/GHSA-r5xw-q988-826m/ (Markdown: https://insights.sbomify.com/GHSA-r5xw-q988-826m/index.md)","id":"GHSA-r5xw-q988-826m","markdown":"https://insights.sbomify.com/GHSA-r5xw-q988-826m/index.md","name":"GHSA-r5xw-q988-826m","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js ODM library","requires_auth":"low_privilege","summary":"Attackers can expose uninitialized memory by saving numbers to Buffer fields, potentially leaking sensitive data.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"Versions of `mongoose` before 4.3.6, 3.8.39 are vulnerable to remote memory exposure.\n\nTrying to save a number to a field of type Buffer on the affected mongoose versions allocates a chunk of uninitialized memory and stores it in the database.\n\n## Recommendation\n\nUpdate to version 4.3.6, 3.8.39 or later.","ecosystems":["npm"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Remote Memory Exposure in mongoose","id":"GHSA-r5xw-q988-826m","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":"information_disclosure","year":"2020"},"n_packages":4,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["3.8.39"],"introduced":["3.5.5"],"last_affected":[],"package":"mongoose","purl":null,"source":"GHSA-r5xw-q988-826m"},{"ecosystem":"npm","fixed":["3.8.39"],"introduced":["3.5.5"],"last_affected":[],"package":"mongoose","purl":"pkg:npm/mongoose","source":"GHSA-r5xw-q988-826m"},{"ecosystem":"npm","fixed":["4.3.6"],"introduced":["4.0.0"],"last_affected":[],"package":"mongoose","purl":null,"source":"GHSA-r5xw-q988-826m"},{"ecosystem":"npm","fixed":["4.3.6"],"introduced":["4.0.0"],"last_affected":[],"package":"mongoose","purl":"pkg:npm/mongoose","source":"GHSA-r5xw-q988-826m"}],"products":null,"published":"2020-09-01","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can expose uninitialized memory by saving numbers to Buffer fields, potentially leaking sensitive data.","url":"https://insights.sbomify.com/GHSA-r5xw-q988-826m/"}