{"id":"CVE-2025-61927","sourceIdentifier":"security-advisories@github.com","published":"2025-10-10T20:15:38.430","lastModified":"2026-10-08T13:10:00.200","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. Happy DOM v19 and lower contains a security vulnerability that puts the owner system at the risk of RCE (Remote Code Execution) attacks. A Node.js VM Context is not an isolated environment, and if the user runs untrusted JavaScript code within the Happy DOM VM Context, it may escape the VM and get access to process level functionality. It seems like what the attacker can get control over depends on if the process is using ESM or CommonJS. With CommonJS the attacker can get hold of the `require()` function to import modules. Happy DOM has JavaScript evaluation enabled by default. This may not be obvious to the consumer of Happy DOM and can potentially put the user at risk if untrusted code is executed within the environment. Version 20.0.0 patches the issue by changing JavaScript evaluation to be disabled by default."},{"lang":"es","value":"Happy DOM es una implementación de JavaScript de un navegador web sin su interfaz gráfica de usuario. Happy DOM v19 y versiones anteriores contiene una vulnerabilidad de seguridad que pone al sistema propietario en riesgo de ataques de RCE (ejecución remota de código). Un contexto de VM de Node.js no es un entorno aislado, y si el usuario ejecuta código JavaScript no confiable dentro del contexto de VM de Happy DOM, puede escapar de la VM y obtener acceso a la funcionalidad a nivel de proceso. Parece que aquello sobre lo que el atacante puede obtener control depende de si el proceso está usando ESM o CommonJS. Con CommonJS, el atacante puede hacerse con la función 'require()' para importar módulos. Happy DOM tiene la evaluación de JavaScript habilitada por defecto. Esto puede no ser obvio para el consumidor de Happy DOM y puede potencialmente poner al usuario en riesgo si se ejecuta código no confiable dentro del entorno. La versión 20.0.0 corrige el problema cambiando la evaluación de JavaScript para que esté deshabilitada por defecto."}],"affected":[{"source":"security-advisories@github.com","affectedData":[{"vendor":"capricorn86","product":"happy-dom","versions":[{"version":"< 20.0.0","status":"affected"}]}]}],"metrics":{"cvssMetricV40":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:A/VC:L/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","baseScore":7.2,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"HIGH","userInteraction":"ACTIVE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"HIGH","subIntegrityImpact":"HIGH","subAvailabilityImpact":"HIGH","exploitMaturity":"NOT_DEFINED","confidentialityRequirement":"NOT_DEFINED","integrityRequirement":"NOT_DEFINED","availabilityRequirement":"NOT_DEFINED","modifiedAttackVector":"NOT_DEFINED","modifiedAttackComplexity":"NOT_DEFINED","modifiedAttackRequirements":"NOT_DEFINED","modifiedPrivilegesRequired":"NOT_DEFINED","modifiedUserInteraction":"NOT_DEFINED","modifiedVulnConfidentialityImpact":"NOT_DEFINED","modifiedVulnIntegrityImpact":"NOT_DEFINED","modifiedVulnAvailabilityImpact":"NOT_DEFINED","modifiedSubConfidentialityImpact":"NOT_DEFINED","modifiedSubIntegrityImpact":"NOT_DEFINED","modifiedSubAvailabilityImpact":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2025-10-10T19:58:56.264973Z","id":"CVE-2025-61927","options":[{"exploitation":"poc"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-94"}]}],"references":[{"url":"https://github.com/capricorn86/happy-dom/commit/819d15ba289495439eda8be360d92a614ce22405","source":"security-advisories@github.com"},{"url":"https://github.com/capricorn86/happy-dom/security/advisories/GHSA-37j7-fg3j-429f","source":"security-advisories@github.com"}]}