{"answers":{"affected":"2 open source packages ship an affected version, including ghost.","exploited":"There is no known exploitation of GHSA-wfrj-qqc2-83cm in the wild and no public exploit code.","fix":"Upgrade ghost to 4.15.0 or later.","what":"GHSA-wfrj-qqc2-83cm is a command injection vulnerability in ghost, published on 20 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-wfrj-qqc2-83cm and fix it if it is affected.\n\nWhat it is: GHSA-wfrj-qqc2-83cm is a command injection vulnerability in ghost, published on 20 Sep 2021. 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-wfrj-qqc2-83cm in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ghost (npm): affected all versions; fixed in 4.15.0\n- ghost (npm): affected all versions; fixed in 4.15.0\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-wfrj-qqc2-83cm/ (Markdown: https://insights.sbomify.com/GHSA-wfrj-qqc2-83cm/index.md)","id":"GHSA-wfrj-qqc2-83cm","markdown":"https://insights.sbomify.com/GHSA-wfrj-qqc2-83cm/index.md","name":"GHSA-wfrj-qqc2-83cm","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Ghost CMS","requires_auth":"none","summary":"Remote attackers can execute arbitrary commands on Ghost sites configured to use the sendmail email transport.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\nSites using the `sendmail` transport as part of their `mail` config are vulnerable to remote command injection due to a [vulnerability](https://github.com/advisories/GHSA-48ww-j4fc-435p) in the `nodemailer` dependency.\n\nGhost defaults to the `direct` transport so this is only exploitable if the `sendmail` transport is explicitly used.\n\n### Patches\n\nFixed in 4.15.0, all sites should upgrade as soon as possible.\n\n### Workarounds\n\n* Use an alternative email transport as described in the [docs](https://ghost.org/docs/config/#mail). \n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* email us at security@ghost.org","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":"Remote command injection when using sendmail email transport","id":"GHSA-wfrj-qqc2-83cm","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2021"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["4.15.0"],"introduced":["0"],"last_affected":[],"package":"ghost","purl":null,"source":"GHSA-wfrj-qqc2-83cm"},{"ecosystem":"npm","fixed":["4.15.0"],"introduced":["0"],"last_affected":[],"package":"ghost","purl":"pkg:npm/ghost","source":"GHSA-wfrj-qqc2-83cm"}],"products":null,"published":"2021-09-20","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":"Remote attackers can execute arbitrary commands on Ghost sites configured to use the sendmail email transport.","url":"https://insights.sbomify.com/GHSA-wfrj-qqc2-83cm/"}