{"id":"CVE-2024-47765","published":"2024-10-04T14:20:24Z","modified":"2024-10-04T16:09:22Z","title":"Minecraft MOTD Parser's HtmlGenerator vulnerable to XSS","vendor":"jgniecki","product":"MinecraftMotdParser","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00389,"percentile":0.33861,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"}],"references":[{"url":"https://github.com/jgniecki/MinecraftMotdParser/security/advisories/GHSA-q898-frwq-f3qp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jgniecki/MinecraftMotdParser/commit/b0ab9d68a964cd3d74977f39a9e7af0a94509f7c","tags":["x_refsource_MISC"]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":6.77},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"jgniecki","affectedVersions":[{"vendor":"jgniecki","product":"MinecraftMotdParser","versions":["< 1.0.6"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-04T16:06:28.821236Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"dev-lancer/minecraft-motd-parser","vulnerableRanges":["<1.0.6"],"patched":["1.0.6"],"from":["GHSA-q898-frwq-f3qp"],"provenance":"source"}],"summary":{"text":"The HtmlGenerator class in jgniecki's MinecraftMotdParser PHP library fails to filter or escape the color and text properties of MotdItem objects when generating HTML, so malicious values from a parsed server MOTD are injected into generated web pages. An attacker who controls a Minecraft server can exploit this over the network without authentication or privileges, provided the MOTD is queried and passed to HtmlGenerator, with the injected script executing in the browser of a user who views the generated page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:34Z"},"euvd":{"id":"EUVD-2024-3108","exploited":false,"provenance":"source"}}