{"answers":{"affected":"4 open source packages ship an affected version, including hoek. It affects 1 product.","exploited":"There is no known exploitation of CVE-2018-3728 in the wild and no public exploit code.","fix":"Upgrade hoek to a fixed version for your release line: 4.2.1 or 5.0.3.","what":"CVE-2018-3728 is a high-severity vulnerability in hapi hoek node module, published on 30 Mar 2018. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-3728 and fix it if it is affected.\n\nWhat it is: CVE-2018-3728 is a high-severity vulnerability in hapi hoek node module, published on 30 Mar 2018. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2018-3728 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- hoek (npm): affected all versions; fixed in 4.2.1\n- hoek (npm): affected all versions; fixed in 4.2.1\n- hoek (npm): affected from 5.0.0; fixed in 5.0.3\n- hoek (npm): affected from 5.0.0; fixed in 5.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/CVE-2018-3728/ (Markdown: https://insights.sbomify.com/CVE-2018-3728/index.md)","id":"CVE-2018-3728","markdown":"https://insights.sbomify.com/CVE-2018-3728/index.md","name":"CVE-2018-3728","record":{"aliases":["DEBIAN-CVE-2018-3728","GHSA-jp4x-w63m-7wgm","UBUNTU-CVE-2018-3728"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js utility library","requires_auth":"low_privilege","summary":"Attackers can modify Object prototypes via merge functions, potentially leading to data modification or code execution in applications using the hoek library.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[{"product":"hoek","vendor":"hapijs"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-471","name":"Modification of Assumed-Immutable Data (MAID)"}],"description":"hoek node module before 4.2.0 and 5.0.x before 5.0.3 suffers from a Modification of Assumed-Immutable Data (MAID) vulnerability via 'merge' and 'applyToDefaults' functions, which allows a malicious user to modify the prototype of \"Object\" via __proto__, causing the addition or modification of an existing property that will exist on all objects.","ecosystems":["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 hoek","id":"CVE-2018-3728","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"other","year":"2018"},"n_packages":4,"n_references":7,"next":{"headline":"Path Traversal in localhost-now","id":"CVE-2018-3729"},"packages":[{"ecosystem":"npm","fixed":["4.2.1"],"introduced":["0"],"last_affected":[],"package":"hoek","purl":null,"source":"GHSA-jp4x-w63m-7wgm"},{"ecosystem":"npm","fixed":["4.2.1"],"introduced":["0"],"last_affected":[],"package":"hoek","purl":"pkg:npm/hoek","source":"GHSA-jp4x-w63m-7wgm"},{"ecosystem":"npm","fixed":["5.0.3"],"introduced":["5.0.0"],"last_affected":[],"package":"hoek","purl":null,"source":"GHSA-jp4x-w63m-7wgm"},{"ecosystem":"npm","fixed":["5.0.3"],"introduced":["5.0.0"],"last_affected":[],"package":"hoek","purl":"pkg:npm/hoek","source":"GHSA-jp4x-w63m-7wgm"}],"prev":{"headline":"Path Traversal in 626","id":"CVE-2018-3727"},"products":["hoek node module"],"published":"2018-03-30","related":[{"cvss_score":8.1,"headline":"hoek subject to prototype pollution via the clone function.","id":"CVE-2020-36604","kev_date_added":null,"published":"2022-09-23"}],"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":["hapi"]},"summary":"Attackers can modify Object prototypes via merge functions, potentially leading to data modification or code execution in applications using the hoek library.","url":"https://insights.sbomify.com/CVE-2018-3728/"}