{"answers":{"affected":"2 open source packages ship an affected version, including @seal-security/mongoose-fixed.","exploited":"There is no known exploitation of GHSA-rc4v-99cr-pjcm in the wild and no public exploit code.","fix":"Upgrade @seal-security/mongoose-fixed to 5.3.4 or later.","what":"GHSA-rc4v-99cr-pjcm is a vulnerability in @seal-security/mongoose-fixed, published on 17 Oct 2023."},"fix_prompt":"Check this codebase for GHSA-rc4v-99cr-pjcm and fix it if it is affected.\n\nWhat it is: GHSA-rc4v-99cr-pjcm is a vulnerability in @seal-security/mongoose-fixed, published on 17 Oct 2023. \nExploitation: There is no known exploitation of GHSA-rc4v-99cr-pjcm in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @seal-security/mongoose-fixed (npm): affected from 5.3.3; fixed in 5.3.4\n- @seal-security/mongoose-fixed (npm): affected from 5.3.3; fixed in 5.3.4\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-rc4v-99cr-pjcm/ (Markdown: https://insights.sbomify.com/GHSA-rc4v-99cr-pjcm/index.md)","id":"GHSA-rc4v-99cr-pjcm","markdown":"https://insights.sbomify.com/GHSA-rc4v-99cr-pjcm/index.md","name":"GHSA-rc4v-99cr-pjcm","record":{"aliases":[],"analysis":null,"analysis_generated_by":null,"assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\nThis vulnerability causes a Prototype Pollution in document.js, through functions such as findByIdAndUpdate().\nFor applications using Express and EJS, this can potentially allow remote code execution.\n\n### Patches\nThe original patched version for mongoose 5.3.3 did not include a fix for CVE-2023-3696. Therefore the existing version @seal-security/mongoose-fixed version 5.3.3 is affected by this vulnerability (though it is protected from CVE-2022-2564 and CVE-2019-17426). To mitigate this issue, a @seal-security/mongoose-fixed version 5.3.4 has been deployed. Note that this version is compatible with the original mongoose version 5.3.3, not version 5.3.4\n\n### References\nhttps://security.snyk.io/vuln/SNYK-JS-MONGOOSE-5777721\nhttps://github.com/advisories/GHSA-9m93-w8w6-76hh\nhttps://github.com/Automattic/mongoose/commit/f1efabf350522257364aa5c2cb36e441cf08f1a2","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":"Prototype Pollution in ali-security/mongoose","id":"GHSA-rc4v-99cr-pjcm","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2023"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["5.3.4"],"introduced":["5.3.3"],"last_affected":[],"package":"@seal-security/mongoose-fixed","purl":null,"source":"GHSA-rc4v-99cr-pjcm"},{"ecosystem":"npm","fixed":["5.3.4"],"introduced":["5.3.3"],"last_affected":[],"package":"@seal-security/mongoose-fixed","purl":"pkg:npm/%40seal-security/mongoose-fixed","source":"GHSA-rc4v-99cr-pjcm"}],"products":null,"published":"2023-10-17","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":null,"url":"https://insights.sbomify.com/GHSA-rc4v-99cr-pjcm/"}