CVE-20XX-?
agent?

CVE-2024-37166

8.9 HIGH 0.4% exploit odds Fix listed XSS Web app

What it is

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.

At a glance

Exploitability
Can be exploited over the network with a low-privilege account, but needs a user to act. High risk of data exposure, data tampering.
Exploit odds
0.4% chance of exploitation in the next 30 days (EPSS).
Fix
A patch, advisory or fixed version is referenced. Upgrade or apply it.

Timeline

  1. PublishedDisclosed publicly on CVE.org and NVD
  2. Last updatedMost recent change to the record

Why it ranks here

Details

Published
Last modified
Exploit probability
0.4% · EPSS, next 30 days
Weakness
CWE-79 · Cross-site scripting
Record status
Deferred

Attack profile CVSS 3.1 · 8.9

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
Low
Raw vector

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

Is it in your code?

Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.

Read https://cve-list.com/agent/cve/CVE-2024-37166.md and follow it. Check whether this project is affected by CVE-2024-37166. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.

· More options · Status badge

Meme: I wake up, CVE-2024-37166
Download Square Reddit

Fix and advisories

References

NVD record · CVE.org record