MantisBT vulnerable to CSRF and Open Redirect attacks
MantisBT before 1.3.11, 2.x before 2.3.3, and 2.4.x before 2.4.1 omits a backslash check in string_api.php and consequently has conflicting interpretations of an initial / substring as introducing either a local pathname or a remote hostname, which leads to (1) arbitrary Permalink Injection via CSRF attacks on a permalink_page.php?url= URI and (2) an open redirect via a login_page.php?return= URI.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | mantisbt/mantisbt | < 1.3.11, >= 2.0.0, < 2.3.3, >= 2.4.0, < 2.4.1 | 1.3.11, 2.3.3, 2.4.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-7620
- https://github.com/mantisbt/mantisbt/commit/2d2309a384bcd9d4b6d7d2928e8ded2c46d2d7b0
- https://github.com/mantisbt/mantisbt/commit/8b6787c8d321ee0ced5fb74ac3f34b67b4b7b26c
- https://github.com/mantisbt/mantisbt/commit/c4f50e5df6b189abb1d717a5f7dbab5cbfef8165
- https://github.com/mantisbt/mantisbt
- https://mantisbt.org/bugs/view.php?id=22702
- https://mantisbt.org/bugs/view.php?id=22816
- https://www.exploit-db.com/exploits/42043
- http://hyp3rlinx.altervista.org/advisories/MANTIS-BUG-TRACKER-CSRF-PERMALINK-INJECTION.txt
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N- Weakness (CWE)
CWE-352- Platform
- Composer
- Package
mantisbt/mantisbt- Disclosed
- 17.05.2022
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-9x76-mp7r-2xc5 - CC BY 4.0
Vulnerability history: mantisbt/mantisbt
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 74
- First → latest
- 04.2022 07.2026
- Without a fix
- 2
- Exploited in attacks
- 0
Severity breakdown
- Critical 4
- High 20
- Medium 49
- Low 1
Disclosures per year
- 2022: 34
- 2023: 2
- 2024: 5
- 2025: 4
- 2026: 29
-
MantisBT vulnerable to CSRF and Open Redirect attacks this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.