{"answers":{"affected":"2 open source packages ship an affected version, including dev-lancer/minecraft-motd-parser. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-47765 exists.","fix":"Upgrade dev-lancer/minecraft-motd-parser to 1.0.6 or later.","what":"CVE-2024-47765 is a medium-severity cross-site scripting vulnerability in jgniecki MinecraftMotdParser, published on 4 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-47765 and fix it if it is affected.\n\nWhat it is: CVE-2024-47765 is a medium-severity cross-site scripting vulnerability in jgniecki MinecraftMotdParser, published on 4 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-47765 exists.\n\nAffected packages and fixed versions:\n- dev-lancer/minecraft-motd-parser (Packagist): affected all versions; fixed in 1.0.6\n- dev-lancer/minecraft-motd-parser (Packagist): affected all versions; fixed in 1.0.6\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/CVE-2024-47765/ (Markdown: https://insights.sbomify.com/CVE-2024-47765/index.md)","id":"CVE-2024-47765","markdown":"https://insights.sbomify.com/CVE-2024-47765/index.md","name":"CVE-2024-47765","record":{"aliases":["GHSA-q898-frwq-f3qp"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"PHP Minecraft MOTD parser","requires_auth":"none","summary":"An attacker can inject malicious HTML into web pages via crafted Minecraft MOTD data processed by the HtmlGenerator class in this PHP library.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"minecraft_motd_parser","vendor":"jgniecki"}],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","version":"4.0"},"cwes":[{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Minecraft MOTD Parser is a PHP library to parse minecraft server motd. The HtmlGenerator class is subject to potential cross-site scripting (XSS) attack through a parsed malformed Minecraft server MOTD. The HtmlGenerator iterates through objects of MotdItem that are contained in an object of MotdItemCollection to generate a HTML string. An attacker can make malicious inputs to the color and text properties of MotdItem to inject own HTML into a web page during web page generation. For example by sending a malicious MOTD from a Minecraft server under their control that was queried and passed to the HtmlGenerator. This XSS vulnerability exists because the values of these properties are neither filtered nor escaped. This vulnerability is fixed in 1.0.6.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Minecraft MOTD Parser's HtmlGenerator vulnerable to XSS","id":"CVE-2024-47765","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":2,"n_references":2,"next":{"headline":"Permissions are incorrectly verified for project administrators in the cross tracker search widget","id":"CVE-2024-47766"},"packages":[{"ecosystem":"Packagist","fixed":["1.0.6"],"introduced":["0"],"last_affected":[],"package":"dev-lancer/minecraft-motd-parser","purl":null,"source":"GHSA-q898-frwq-f3qp"},{"ecosystem":"Packagist","fixed":["1.0.6"],"introduced":["0"],"last_affected":[],"package":"dev-lancer/minecraft-motd-parser","purl":"pkg:composer/dev-lancer/minecraft-motd-parser","source":"GHSA-q898-frwq-f3qp"}],"prev":{"headline":"cookie accepts cookie name, path, and domain with out of bounds characters","id":"CVE-2024-47764"},"products":["MinecraftMotdParser"],"published":"2024-10-04","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-04","vendors":["jgniecki"]},"summary":"An attacker can inject malicious HTML into web pages via crafted Minecraft MOTD data processed by the HtmlGenerator class in this PHP library.","url":"https://insights.sbomify.com/CVE-2024-47765/"}