{"answers":{"affected":"4 open source packages ship an affected version, including @hapi/hoek.","exploited":"There is no known exploitation of GHSA-22h7-7wwg-qmgg in the wild and no public exploit code.","fix":"Upgrade @hapi/hoek to a fixed version for your release line: 8.5.1 or 9.0.3.","what":"GHSA-22h7-7wwg-qmgg is a vulnerability in @hapi/hoek, published on 4 Sep 2020."},"fix_prompt":"Check this codebase for GHSA-22h7-7wwg-qmgg and fix it if it is affected.\n\nWhat it is: GHSA-22h7-7wwg-qmgg is a vulnerability in @hapi/hoek, published on 4 Sep 2020. \nExploitation: There is no known exploitation of GHSA-22h7-7wwg-qmgg in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @hapi/hoek (npm): affected from 8.3.2; fixed in 8.5.1\n- @hapi/hoek (npm): affected from 8.3.2; fixed in 8.5.1\n- @hapi/hoek (npm): affected from 9.0.0; fixed in 9.0.3\n- @hapi/hoek (npm): affected from 9.0.0; fixed in 9.0.3\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-22h7-7wwg-qmgg/ (Markdown: https://insights.sbomify.com/GHSA-22h7-7wwg-qmgg/index.md)","id":"GHSA-22h7-7wwg-qmgg","markdown":"https://insights.sbomify.com/GHSA-22h7-7wwg-qmgg/index.md","name":"GHSA-22h7-7wwg-qmgg","record":{"aliases":[],"analysis":null,"analysis_generated_by":null,"assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"Versions of `@hapi/hoek` prior to 8.5.1 and 9.0.3 are vulnerable to Prototype Pollution. The `clone` function fails to prevent the modification of the Object prototype when passed specially-crafted input. Attackers may use this to change existing properties that exist in all objects, which may lead to Denial of Service or Remote Code Execution in specific circumstances.  \nThis issue __does not__ affect hapi applications since the framework protects against such malicious inputs. Applications that use `@hapi/hoek` outside of the hapi ecosystem may be vulnerable.\n\n## Recommendation\n\nUpdate to version 8.5.1, 9.0.3 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":"Prototype Pollution in @hapi/hoek","id":"GHSA-22h7-7wwg-qmgg","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2020"},"n_packages":4,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["8.5.1"],"introduced":["8.3.2"],"last_affected":[],"package":"@hapi/hoek","purl":null,"source":"GHSA-22h7-7wwg-qmgg"},{"ecosystem":"npm","fixed":["8.5.1"],"introduced":["8.3.2"],"last_affected":[],"package":"@hapi/hoek","purl":"pkg:npm/%40hapi/hoek","source":"GHSA-22h7-7wwg-qmgg"},{"ecosystem":"npm","fixed":["9.0.3"],"introduced":["9.0.0"],"last_affected":[],"package":"@hapi/hoek","purl":null,"source":"GHSA-22h7-7wwg-qmgg"},{"ecosystem":"npm","fixed":["9.0.3"],"introduced":["9.0.0"],"last_affected":[],"package":"@hapi/hoek","purl":"pkg:npm/%40hapi/hoek","source":"GHSA-22h7-7wwg-qmgg"}],"products":null,"published":"2020-09-04","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-22h7-7wwg-qmgg/"}