{"answers":{"affected":"4 open source packages ship an affected version, including lodash-rails and lodash. It affects 1 product.","exploited":"There is no known exploitation of CVE-2018-16487 in the wild and no public exploit code.","fix":"Upgrade lodash-rails to 4.17.11 or later.","what":"CVE-2018-16487 is a medium-severity vulnerability in HackerOne lodash, published on 1 Feb 2019. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-16487 and fix it if it is affected.\n\nWhat it is: CVE-2018-16487 is a medium-severity vulnerability in HackerOne lodash, published on 1 Feb 2019. 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-2018-16487 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- lodash-rails (RubyGems): affected all versions; fixed in 4.17.11\n- lodash-rails (RubyGems): affected all versions; fixed in 4.17.11\n- lodash (npm): affected all versions; fixed in 4.17.11\n- lodash (npm): affected all versions; fixed in 4.17.11\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-2018-16487/ (Markdown: https://insights.sbomify.com/CVE-2018-16487/index.md)","id":"CVE-2018-16487","markdown":"https://insights.sbomify.com/CVE-2018-16487/index.md","name":"CVE-2018-16487","record":{"aliases":["DEBIAN-CVE-2018-16487","GHSA-4xc9-xhrj-v574","MINI-86gc-qrf2-3cc4","MINI-c2v2-m3rm-4xqq","ROOT-APP-NPM-CVE-2018-16487","UBUNTU-CVE-2018-16487"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript utility library","requires_auth":"none","summary":"Prototype pollution in lodash allows attackers to modify Object.prototype, potentially leading to code execution or privilege escalation in applications using the library.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[{"product":"lodash","vendor":"lodash"}],"cvss":{"score":5.6,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"A prototype pollution vulnerability was found in lodash \u003c4.17.11 where the functions merge, mergeWith, and defaultsDeep can be tricked into adding or modifying properties of Object.prototype.","ecosystems":["RubyGems","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":"Prototype Pollution in lodash","id":"CVE-2018-16487","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"other","year":"2018"},"n_packages":4,"n_references":2,"next":{"headline":"Prototype Pollution in just-extend","id":"CVE-2018-16489"},"packages":[{"ecosystem":"RubyGems","fixed":["4.17.11"],"introduced":["0"],"last_affected":[],"package":"lodash-rails","purl":null,"source":"GHSA-4xc9-xhrj-v574"},{"ecosystem":"RubyGems","fixed":["4.17.11"],"introduced":["0"],"last_affected":[],"package":"lodash-rails","purl":"pkg:gem/lodash-rails","source":"GHSA-4xc9-xhrj-v574"},{"ecosystem":"npm","fixed":["4.17.11"],"introduced":["0"],"last_affected":[],"package":"lodash","purl":null,"source":"GHSA-4xc9-xhrj-v574"},{"ecosystem":"npm","fixed":["4.17.11"],"introduced":["0"],"last_affected":[],"package":"lodash","purl":"pkg:npm/lodash","source":"GHSA-4xc9-xhrj-v574"}],"prev":{"headline":"Prototype Pollution in defaults-deep","id":"CVE-2018-16486"},"products":["lodash"],"published":"2019-02-01","related":[{"cvss_score":8.1,"headline":"lodash vulnerable to Code Injection via `_.template` imports key names","id":"CVE-2026-4800","kev_date_added":null,"published":"2026-03-31"},{"cvss_score":7.4,"headline":"Prototype Pollution in lodash","id":"CVE-2020-8203","kev_date_added":null,"published":"2020-07-15"},{"cvss_score":7.2,"headline":"Command Injection","id":"CVE-2021-23337","kev_date_added":null,"published":"2021-02-15"},{"cvss_score":6.9,"headline":"Prototype Pollution Vulnerability in Lodash _.unset and _.omit functions","id":"CVE-2025-13465","kev_date_added":null,"published":"2026-01-21"},{"cvss_score":6.5,"headline":"lodash vulnerable to Prototype Pollution via array path bypass in `_.unset` and `_.omit`","id":"CVE-2026-2950","kev_date_added":null,"published":"2026-03-31"},{"cvss_score":6.5,"headline":"Regular Expression Denial of Service (ReDoS) in lodash","id":"CVE-2019-1010266","kev_date_added":null,"published":"2019-07-17"},{"cvss_score":6.5,"headline":"Prototype Pollution in lodash","id":"CVE-2018-3721","kev_date_added":null,"published":"2018-06-07"}],"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":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["HackerOne"]},"summary":"Prototype pollution in lodash allows attackers to modify Object.prototype, potentially leading to code execution or privilege escalation in applications using the library.","url":"https://insights.sbomify.com/CVE-2018-16487/"}