CVE-2025-45526
JSON

2.9low

A denial of service (DoS) vulnerability has been identified in the JavaScript library microlight version 0.0.7.

Severity
2.9low CVSS:3.1 by mitre
Exploit likelihood
0.21% (higher than 12% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-wgc6-9f6w-h8hx

Description

A denial of service (DoS) vulnerability has been identified in the JavaScript library microlight version 0.0.7. This library, used for syntax highlighting, does not limit the size of textual content it processes in HTML elements with the microlight class. When excessively large content (e.g., 100 million characters) is processed, the reset function in microlight.js consumes excessive memory and CPU resources, causing browser crashes or unresponsiveness. An attacker can exploit this vulnerability by tricking a user into visiting a malicious web page containing a microlight element with large content, resulting in a denial of service. NOTE: this is disputed by multiple parties because a large amount of memory and CPU resources is expected to be needed for content of that size.

Affected

Product or packageVersionsReported by
asvd microlightup to 0.0.7CVE List
microlight (npm)up to 0.0.7GitHub Advisory Database

All scores

mitre2.9low CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHublow CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P

Classification

CWE-770

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

A denial of service (DoS) vulnerability has been identified in the JavaScript library microlight version 0.0.7. This library, used for syntax highlighting, does not limit the size of textual content it processes in HTML elements with the microlight class. When excessively large content (e.g., 100 million characters) is processed, the reset function in microlight.js consumes excessive memory and CPU resources, causing browser crashes or unresponsiveness. An attacker can exploit this vulnerability by tricking a user into visiting a malicious web page containing a microlight element with large content, resulting in a denial of service. NOTE: this is disputed by multiple parties because a large amount of memory and CPU resources is expected to be needed for content of that size.

GitHub Advisory Database

Withdrawn Advisory

This advisory has been withdrawn because the proof of concept does not demonstrate a practical security impact. This link is maintained to preserve external references.

Original Description

A denial of service (DoS) vulnerability has been identified in the JavaScript library microlight version 0.0.7. This library, used for syntax highlighting, does not limit the size of textual content it processes in HTML elements with the microlight class. When excessively large content (e.g., 100 million characters) is processed, the reset function in microlight.js consumes excessive memory and CPU resources, causing browser crashes or unresponsiveness. An attacker can exploit this vulnerability by tricking a user into visiting a malicious web page containing a microlight element with large content, resulting in a denial of service.

NVD (es)

Se ha identificado una vulnerabilidad de denegación de servicio (DoS) en la librería de JavaScript microlight versión 0.0.7. Esta librería, utilizada para el resaltado de sintaxis, no limita el tamaño del contenido textual que procesa en elementos HTML con la clase microlight. Cuando se procesa contenido excesivamente grande (p. ej., 100 millones de caracteres), la función de reinicio de microlight.js consume una cantidad excesiva de memoria y recursos de CPU, lo que provoca bloqueos o incapacidad de respuesta del navegador. Un atacante puede explotar esta vulnerabilidad engañando al usuario para que visite una página web maliciosa que contenga un elemento microlight con contenido extenso, lo que resulta en una denegación de servicio.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-45526 changed 2025-06-26CVE Terms of Use
GitHub Advisory DatabaseGHSA-wgc6-9f6w-h8hx changed 2026-09-10CC-BY-4.0
NVDCVE-2025-45526 changed 2026-06-17Public domain