{"cve":"CVE-2024-37166","nvd":{"published":"2024-06-10T22:15:12.187","modified":"2026-06-17T07:37:52.883","status":"Deferred","description":"ghtml is software that uses tagged templates for template engine functionality. It is possible to introduce user-controlled JavaScript code and trigger a Cross-Site Scripting (XSS) vulnerability in some cases. Version 2.0.0 introduces changes to mitigate this issue. Version 2.0.0 contains updated documentation to clarify that while ghtml escapes characters with special meaning in HTML, it does not provide comprehensive protection against all types of XSS attacks in every scenario. This aligns with the approach taken by other template engines. Developers should be cautious and take additional measures to sanitize user input and prevent potential vulnerabilities. Additionally, the backtick character (`) is now also escaped to prevent the creation of strings in most cases where a malicious actor somehow gains the ability to write JavaScript. This does not provide comprehensive protection either.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L","score":8.9},"cwes":["CWE-79","CWE-80"],"references":["https://github.com/gurgunday/ghtml/commit/df1ea50fe8968a766fd2b9379a8f9806375227f8","https://github.com/gurgunday/ghtml/security/advisories/GHSA-vvhj-v88f-5gxr","https://github.com/gurgunday/ghtml/commit/df1ea50fe8968a766fd2b9379a8f9806375227f8","https://github.com/gurgunday/ghtml/security/advisories/GHSA-vvhj-v88f-5gxr"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:51:20.603330631+00:00"},"epss":{"cve":"CVE-2024-37166","score":0.00436,"percentile":0.37899,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-vvhj-v88f-5gxr","url":"https://osv.dev/vulnerability/GHSA-vvhj-v88f-5gxr","summary":"ghtml Cross-Site Scripting (XSS) vulnerability","modified":"2026-09-10T03:50:15.993061595Z","packages":[{"ecosystem":"npm","name":"ghtml","purl":"pkg:npm/ghtml","ranges":["<2.0.0"],"fixed":["2.0.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}