{"answers":{"affected":"2 open source packages ship an affected version, including ascii-art.","exploited":"There is no known exploitation of GHSA-9hqj-38j2-5jgm in the wild and no public exploit code.","fix":"Upgrade ascii-art to 1.4.4 or later.","what":"GHSA-9hqj-38j2-5jgm is a vulnerability in ascii-art, published on 1 Sep 2020."},"fix_prompt":"Check this codebase for GHSA-9hqj-38j2-5jgm and fix it if it is affected.\n\nWhat it is: GHSA-9hqj-38j2-5jgm is a vulnerability in ascii-art, published on 1 Sep 2020. \nExploitation: There is no known exploitation of GHSA-9hqj-38j2-5jgm in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ascii-art (npm): affected all versions; fixed in 1.4.4\n- ascii-art (npm): affected all versions; fixed in 1.4.4\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-9hqj-38j2-5jgm/ (Markdown: https://insights.sbomify.com/GHSA-9hqj-38j2-5jgm/index.md)","id":"GHSA-9hqj-38j2-5jgm","markdown":"https://insights.sbomify.com/GHSA-9hqj-38j2-5jgm/index.md","name":"GHSA-9hqj-38j2-5jgm","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 `ascii-art` before 1.4.4 are vulnerable to command injection. This is exploitable when user input is passed into the argument of the `ascii-art preview` command. \n\nExample Proof of concept:\n`ascii-art preview 'doom\"; touch /tmp/malicious; echo \"'`\n\nGiven that the input is passed on the command line and none of the api methods are vulnerable to this,  the likely exploitation vector is when the ascii-art comment is being called programmatically using something like `execFile`.\n\n## Recommendation\n\nUpdate to version 1.4.4 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":"Command Injection in ascii-art","id":"GHSA-9hqj-38j2-5jgm","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2020"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["1.4.4"],"introduced":["0"],"last_affected":[],"package":"ascii-art","purl":null,"source":"GHSA-9hqj-38j2-5jgm"},{"ecosystem":"npm","fixed":["1.4.4"],"introduced":["0"],"last_affected":[],"package":"ascii-art","purl":"pkg:npm/ascii-art","source":"GHSA-9hqj-38j2-5jgm"}],"products":null,"published":"2020-09-01","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-9hqj-38j2-5jgm/"}