llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · elmsln/haxcms

GHSA-2VC4-3HX7-V7V7

Hax CMS Stored Cross-Site Scripting vulnerability

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión11.0.0
Exposición528 dDesde la divulgación, 9 jun 2025, 12:43 p. m.
Detección525 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Monitoreo
Detectada
9 jun 25
10 sept 26
17 nov 26
19 nov 26
9 jun 25
19 oct 25
28 feb 26
10 jul 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-2VC4-3HX7-V7V7 divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Summary

The application does not sufficiently sanitize user input, allowing for the execution of arbitrary JavaScript code. The 'saveNode' and 'saveManifest' endpoints take user input and store it in the JSON schema for the site. This content is then rendered in the generated HAX site.

Although the application does not allow users to supply a 'script' tag, it does allow the use of other HTML tags to run JavaScript.

Affected Resources
  • Operations.php:258 https://github.com/haxtheweb/haxcms-php/blob/master/system/backend/php/lib/Operations.php#L258 `saveManifest()`
  • Operations.php:868 https://github.com/haxtheweb/haxcms-php/blob/master/system/backend/php/lib/Operations.php#L868 `saveNode()`
  • `https://<site>/<user>/system/api/saveNode`
  • `https://<site>/<user>/system/api/saveManifest`
Impact

An authenticated attacker can use the site editor and settings editor to store malicious payloads in a HAX site which execute arbitrary JavaScript when a user visits the site. This can be used to steal a user's session cookie or other sensitive data.

PoCs
saveNode

To replicate this vulnerability, an attacker can use the "View Source" functionality within the site editor to enter a malicious payload.

  1. Select "View Source" within the HAX site editor and enter an XSS payload that does not use the "script" HTML tag.

!image https://github.com/user-attachments/assets/c22c52e6-079a-4add-94a2-b51b1a925a96

  1. Select "Update HTML" and observe the resulting alert.

!image https://github.com/user-attachments/assets/df2da026-de47-4f65-bbc2-c4dbc8fb77e5

!image https://github.com/user-attachments/assets/d593418c-73c6-4210-953e-faca8405174c

saveManifest

To exploit the 'SaveManifest' endpoint, an attacker can insert executable code into the URL field of the site settings editor: any payload added this way will execute when the site is loaded.

  1. Open the site settings editor.

!image https://github.com/user-attachments/assets/f7faa998-58ec-4085-9c65-d6a9f3831587

  1. Add JavaScript code to the URL field under the "Theme" header.

!image https://github.com/user-attachments/assets/a99a7238-bb63-408c-8ca7-22deaffeca83

  1. Reload the page to run the script.

!image https://github.com/user-attachments/assets/e634b1f3-58c1-44f6-8c8a-814773e69e83

  1. The resulting page source will contain the script.

!image https://github.com/user-attachments/assets/a022d9d2-a6bf-41ad-a9f2-44a6a2f0fa07

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Versiones

Rangos afectados

Afectada Corregida
elmsln/haxcms< 11.0.0
11.0.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistelmsln/haxcms
Corregida 11.0.0 — —
Versiones corregidas11.0.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-49137
Otrahttps://github.com/haxtheweb/issues/security/advisories/GHSA-2vc4-3hx7-v7v7
Otrahttps://github.com/haxtheweb/haxcms-php/commit/0dd3e98fe2fadd0793b667d4af2aac230980e0f8
Otrahttps://github.com/haxtheweb/issues

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.