Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. dev-lancer/minecraft-motd-parser
  4. ›
  5. CVE-2024-47765

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

October 4, 2024 (updated November 13, 2024)

The HtmlGenerator class is subject to potential cross-site scripting (XSS) attack through a parsed malformed Minecraft server MOTD.

References

  • github.com/advisories/GHSA-q898-frwq-f3qp
  • github.com/jgniecki/MinecraftMotdParser
  • github.com/jgniecki/MinecraftMotdParser/blob/0412f68eeb91729a00444a8d6c00c45623884aa5/src/Generator/HtmlGenerator.php
  • github.com/jgniecki/MinecraftMotdParser/blob/0412f68eeb91729a00444a8d6c00c45623884aa5/src/Generator/HtmlGenerator.php
  • github.com/jgniecki/MinecraftMotdParser/commit/b0ab9d68a964cd3d74977f39a9e7af0a94509f7c
  • github.com/jgniecki/MinecraftMotdParser/security/advisories/GHSA-q898-frwq-f3qp
  • nvd.nist.gov/vuln/detail/CVE-2024-47765

Code Behaviors & Features

Detect and mitigate CVE-2024-47765 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.0.6

Fixed versions

  • 1.0.6

Solution

Upgrade to version 1.0.6 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)

Source file

packagist/dev-lancer/minecraft-motd-parser/CVE-2024-47765.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:14 +0000.