Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. ghtml
  4. ›
  5. CVE-2024-37166

CVE-2024-37166: ghtml Cross-Site Scripting (XSS) vulnerability

June 10, 2024

It is possible to introduce user-controlled JavaScript code and trigger a Cross-Site Scripting (XSS) vulnerability in some cases.

References

  • github.com/advisories/GHSA-vvhj-v88f-5gxr
  • github.com/gurgunday/ghtml
  • github.com/gurgunday/ghtml/commit/df1ea50fe8968a766fd2b9379a8f9806375227f8
  • github.com/gurgunday/ghtml/security/advisories/GHSA-vvhj-v88f-5gxr
  • nvd.nist.gov/vuln/detail/CVE-2024-37166

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.0.0

Fixed versions

  • 2.0.0

Solution

Upgrade to version 2.0.0 or above.

Impact 8.9 HIGH

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

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

npm/ghtml/CVE-2024-37166.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:17:20 +0000.