{"answers":{"affected":"2 open source packages ship an affected version, including matrix-org-irc.","exploited":"There is no known exploitation of GHSA-52rh-5rpj-c3w6 in the wild and no public exploit code.","fix":"Upgrade matrix-org-irc to 1.2.1 or later.","what":"GHSA-52rh-5rpj-c3w6 is a command injection vulnerability in matrix-org-irc, published on 5 May 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-52rh-5rpj-c3w6 and fix it if it is affected.\n\nWhat it is: GHSA-52rh-5rpj-c3w6 is a command injection vulnerability in matrix-org-irc, published on 5 May 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-52rh-5rpj-c3w6 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- matrix-org-irc (npm): affected all versions; fixed in 1.2.1\n- matrix-org-irc (npm): affected all versions; fixed in 1.2.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-52rh-5rpj-c3w6/ (Markdown: https://insights.sbomify.com/GHSA-52rh-5rpj-c3w6/index.md)","id":"GHSA-52rh-5rpj-c3w6","markdown":"https://insights.sbomify.com/GHSA-52rh-5rpj-c3w6/index.md","name":"GHSA-52rh-5rpj-c3w6","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js IRC library","requires_auth":"none","summary":"An attacker can inject IRC commands by exploiting improper CR character handling in node-irc, requiring a user to reply to a malicious message.","user_interaction":"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":"node-irc is a socket wrapper for the IRC protocol that extends Node.js' EventEmitter. The vulnerability allows an attacker to manipulate a Matrix user into executing IRC commands by having them reply to a maliciously crafted message. Incorrect handling of a CR character allowed for making part of the message be sent to the IRC server verbatim rather than as a message to the channel.\nThe vulnerability has been patched in node-irc version 1.2.1.","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 handling of multiline messages in node-irc","id":"GHSA-52rh-5rpj-c3w6","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2022"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["1.2.1"],"introduced":["0"],"last_affected":[],"package":"matrix-org-irc","purl":null,"source":"GHSA-52rh-5rpj-c3w6"},{"ecosystem":"npm","fixed":["1.2.1"],"introduced":["0"],"last_affected":[],"package":"matrix-org-irc","purl":"pkg:npm/matrix-org-irc","source":"GHSA-52rh-5rpj-c3w6"}],"products":null,"published":"2022-05-05","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":"An attacker can inject IRC commands by exploiting improper CR character handling in node-irc, requiring a user to reply to a malicious message.","url":"https://insights.sbomify.com/GHSA-52rh-5rpj-c3w6/"}