# CVE-2024-47765: Minecraft MOTD Parser's HtmlGenerator vulnerable to XSS

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-02)
- Published: 2024-10-04T14:20:24.412Z
- Modified: 2026-06-17T07:57:42.860Z
- Also known as: GHSA-q898-frwq-f3qp
- Weaknesses: CWE-79, CWE-80
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- jgniecki MinecraftMotdParser: < 1.0.6; before 1.0.6
- dev-lancer/minecraft-motd-parser (Packagist): before 1.0.6
- jgniecki minecraft_motd_parser: before 1.0.6

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/jgniecki/MinecraftMotdParser/security/advisories/GHSA-q898-frwq-f3qp> (vendor-advisory, web)
- <https://github.com/jgniecki/MinecraftMotdParser/commit/b0ab9d68a964cd3d74977f39a9e7af0a94509f7c> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-47765> (advisory)
- <https://github.com/jgniecki/MinecraftMotdParser> (package)
- <https://github.com/jgniecki/MinecraftMotdParser/blob/0412f68eeb91729a00444a8d6c00c45623884aa5/src/Generator/HtmlGenerator.php#L49> (web)
- <https://github.com/jgniecki/MinecraftMotdParser/blob/0412f68eeb91729a00444a8d6c00c45623884aa5/src/Generator/HtmlGenerator.php#L80> (web)

## Sources

- CVE List: [CVE-2024-47765](https://www.cve.org/CVERecord?id=CVE-2024-47765), CVE Terms of Use, modified 2024-10-04
- GitHub Advisory Database: [GHSA-q898-frwq-f3qp](https://github.com/advisories/GHSA-q898-frwq-f3qp), CC-BY-4.0, modified 2024-11-13
- NVD: [CVE-2024-47765](https://nvd.nist.gov/vuln/detail/CVE-2024-47765), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-47765 · Whole record: https://cve.day/CVE-2024-47765.json · Rebuilt by cve.day 2026-11-25T22:58:46.030Z
