{"answers":{"affected":"4 open source packages ship an affected version, including npm-registry-fetch.","exploited":"There is no known exploitation of GHSA-jmqm-f2gx-4fjv in the wild and no public exploit code.","fix":"Upgrade npm-registry-fetch to a fixed version for your release line: 4.0.5 or 8.1.1.","what":"GHSA-jmqm-f2gx-4fjv is a vulnerability in npm-registry-fetch, published on 7 Jul 2020. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-jmqm-f2gx-4fjv and fix it if it is affected.\n\nWhat it is: GHSA-jmqm-f2gx-4fjv is a vulnerability in npm-registry-fetch, published on 7 Jul 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-jmqm-f2gx-4fjv in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- npm-registry-fetch (npm): affected all versions; fixed in 4.0.5\n- npm-registry-fetch (npm): affected all versions; fixed in 4.0.5\n- npm-registry-fetch (npm): affected from 5.0.0; fixed in 8.1.1\n- npm-registry-fetch (npm): affected from 5.0.0; fixed in 8.1.1\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-jmqm-f2gx-4fjv/ (Markdown: https://insights.sbomify.com/GHSA-jmqm-f2gx-4fjv/index.md)","id":"GHSA-jmqm-f2gx-4fjv","markdown":"https://insights.sbomify.com/GHSA-jmqm-f2gx-4fjv/index.md","name":"GHSA-jmqm-f2gx-4fjv","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"npm registry fetch library","requires_auth":"none","summary":"Attackers can read sensitive credentials from logs or stdout when using npm-registry-fetch with URLs containing passwords.","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":"Affected versions of `npm-registry-fetch` are vulnerable to an information exposure vulnerability through log files. The cli supports URLs like `\u003cprotocol\u003e://[\u003cuser\u003e[:\u003cpassword\u003e]@]\u003chostname\u003e[:\u003cport\u003e][:][/]\u003cpath\u003e`. The password value is not redacted and is printed to stdout and also to any generated log files.","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":"Sensitive information exposure through logs in npm-registry-fetch","id":"GHSA-jmqm-f2gx-4fjv","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":"information_disclosure","year":"2020"},"n_packages":4,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["4.0.5"],"introduced":["0"],"last_affected":[],"package":"npm-registry-fetch","purl":null,"source":"GHSA-jmqm-f2gx-4fjv"},{"ecosystem":"npm","fixed":["4.0.5"],"introduced":["0"],"last_affected":[],"package":"npm-registry-fetch","purl":"pkg:npm/npm-registry-fetch","source":"GHSA-jmqm-f2gx-4fjv"},{"ecosystem":"npm","fixed":["8.1.1"],"introduced":["5.0.0"],"last_affected":[],"package":"npm-registry-fetch","purl":null,"source":"GHSA-jmqm-f2gx-4fjv"},{"ecosystem":"npm","fixed":["8.1.1"],"introduced":["5.0.0"],"last_affected":[],"package":"npm-registry-fetch","purl":"pkg:npm/npm-registry-fetch","source":"GHSA-jmqm-f2gx-4fjv"}],"products":null,"published":"2020-07-07","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":"Attackers can read sensitive credentials from logs or stdout when using npm-registry-fetch with URLs containing passwords.","url":"https://insights.sbomify.com/GHSA-jmqm-f2gx-4fjv/"}