{"answers":{"affected":"2 open source packages ship an affected version, including shelljs.","exploited":"There is no known exploitation of GHSA-64g7-mvw6-v9qj in the wild and no public exploit code.","fix":"Upgrade shelljs to 0.8.5 or later.","what":"GHSA-64g7-mvw6-v9qj is a vulnerability in shelljs, published on 14 Jan 2022. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-64g7-mvw6-v9qj and fix it if it is affected.\n\nWhat it is: GHSA-64g7-mvw6-v9qj is a vulnerability in shelljs, published on 14 Jan 2022. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-64g7-mvw6-v9qj in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- shelljs (npm): affected all versions; fixed in 0.8.5\n- shelljs (npm): affected all versions; fixed in 0.8.5\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-64g7-mvw6-v9qj/ (Markdown: https://insights.sbomify.com/GHSA-64g7-mvw6-v9qj/index.md)","id":"GHSA-64g7-mvw6-v9qj","markdown":"https://insights.sbomify.com/GHSA-64g7-mvw6-v9qj/index.md","name":"GHSA-64g7-mvw6-v9qj","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Node.js shell library","requires_auth":"none","summary":"Local attackers can read output from synchronous shell commands in multi-user environments, exposing 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":"### Impact\nOutput from the synchronous version of `shell.exec()` may be visible to other users on the same system. You may be affected if you execute `shell.exec()` in multi-user Mac, Linux, or WSL environments, or if you execute `shell.exec()` as the root user.\n\nOther shelljs functions (including the asynchronous version of `shell.exec()`) are not impacted.\n\n### Patches\nPatched in shelljs 0.8.5\n\n### Workarounds\nRecommended action is to upgrade to 0.8.5.\n\n### References\nhttps://huntr.dev/bounties/50996581-c08e-4eed-a90e-c0bac082679c/\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Ask at https://github.com/shelljs/shelljs/issues/1058\n* Open an issue at https://github.com/shelljs/shelljs/issues/new","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":"Improper Privilege Management in shelljs","id":"GHSA-64g7-mvw6-v9qj","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":"information_disclosure","year":"2022"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["0.8.5"],"introduced":["0"],"last_affected":[],"package":"shelljs","purl":null,"source":"GHSA-64g7-mvw6-v9qj"},{"ecosystem":"npm","fixed":["0.8.5"],"introduced":["0"],"last_affected":[],"package":"shelljs","purl":"pkg:npm/shelljs","source":"GHSA-64g7-mvw6-v9qj"}],"products":null,"published":"2022-01-14","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":"Local attackers can read output from synchronous shell commands in multi-user environments, exposing sensitive data.","url":"https://insights.sbomify.com/GHSA-64g7-mvw6-v9qj/"}