Cross-site scripting (XSS) vulnerability in Description metadata
Summary
Regardless of the role or privileges, no user should be able to inject malicious JavaScript (JS) scripts into the body HTML. an XSS (Cross-Site Scripting) vulnerability, specifically a Stored XSS, which affects all pages of the website. Once the JS script is embedded in the body HTML, the XSS will trigger on any page a victim visits, such as the about, blog, contact, or any other pages, except for the panel.
Impact
This vulnerability allows attackers to inject malicious JS or HTML through a crafted payload into the vulnerable spot, achieving persistence and attacking numerous visitors or anyone accessing the website. The attack can be widespread and affect many users because the malicious JS will execute on every page, unlike an injection on a specific page (e.g., injecting on the About page would only affect that page). In this case, a single injection point leads to the execution of the malicious JS on all pages.
Patches
- Formwork 1.13.1 has been released with a patch that solves this vulnerability by escaping all metadata attributes.
- Formwork 2.x (f531201) also escapes metadata attributes.
Details
An attackers (requires administrator privilege) to execute arbitrary web scripts by modifying site options via /panel/options/site. This type of attack is suitable for persistence, affecting visitors across all pages (except the dashboard).
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Paquete de Composer | getformwork/formwork | < 1.13.1, >= 2.0.0-beta.1, < 2.0.0-beta.2 | 1.13.1, 2.0.0-beta.2 |
Referencias
- https://github.com/getformwork/formwork/security/advisories/GHSA-5pxr-7m4j-jjc6
- https://nvd.nist.gov/vuln/detail/CVE-2024-37160
- https://github.com/getformwork/formwork/commit/9d471204f7ebb51c3c27131581c2b834315b5e0b
- https://github.com/getformwork/formwork/commit/f5312015a5a5e89b95ef2bd07e496f8474d579c5
- https://github.com/getformwork/formwork
- Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N- Debilidad (CWE)
CWE-79- Plataforma
- Composer
- Paquete
getformwork/formwork- Publicada
- 07.06.2024
- Actualizado
- 11.10.2026 10:22
Fuentes y licencias
OSV / GitHub Advisory Database - GHSA-5pxr-7m4j-jjc6 - CC BY 4.0
Historial de vulnerabilidades: getformwork/formwork
Todas las vulnerabilidades publicadas de este paquete (Paquete de Composer), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 7
- Primera → última
- 02.2023 02.2026
- Sin corrección
- 0
- Explotada en ataques
- 0
Distribución por gravedad
- Alta 2
- Media 5
Divulgaciones por año
- 2023: 1
- 2024: 2
- 2025: 3
- 2026: 1
-
Cross-site scripting (XSS) vulnerability in Description metadata esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.