# MantisBT CSV Injection unprivileged user access in csv_export.php

Advisory record · `GHSA-rg8f-5p7x-m6wv`

- **Identifiers:** `GHSA-rg8f-5p7x-m6wv` · `CVE-2021-43257` · `PKSA-666f-jmzg-3cj8`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **Weakness (CWE):** [CWE-1236](https://cwe.mitre.org/data/definitions/1236.html)
- **Tags:** [Other injection](https://agentprime.io/advisories/tag/injection.md)
- **Published:** 15 Apr 2022
- **Updated:** 30 May 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 15 Apr 2022, 00:00 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `mantisbt/mantisbt` (Packagist): affected `<2.25.3`; fixed in `2.25.3`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> MantisBT versions before 2.25.3 are vulnerable to CSV injection in the CSV export from csv_export.php. An unprivileged attacker can place spreadsheet formula content into exported data, so when a user opens the generated CSV file in Excel, the formulas may run code or expose information. Upgrade mantisbt/mantisbt to 2.25.3 or later.

Written 3 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.0098, the 62nd percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:27 UTC: First seen by agentprime
- 31 Oct 2026, 14:27 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-rg8f-5p7x-m6wv)

## Sources

- [GitHub Advisory Database: GHSA-rg8f-5p7x-m6wv](https://github.com/advisories/GHSA-rg8f-5p7x-m6wv)
- [OSV: GHSA-rg8f-5p7x-m6wv](https://osv.dev/vulnerability/GHSA-rg8f-5p7x-m6wv)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-43257>
- <https://github.com/mantisbt/mantisbt/commit/7f4534c723e3162b8784aebda4836324041dbc3e>
- <https://github.com/mantisbt/mantisbt/commit/99eb8d41cbacc703f88807898dcc9ac55eec0f15>
- <https://github.com/mantisbt/mantisbt>
- <https://www.mantisbt.org/bugs/view.php?id=29130>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-rg8f-5p7x-m6wv>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-rg8f-5p7x-m6wv/>. Everything for agents: <https://agentprime.io/llms.txt>.
