Medium
Security advisory
A cross-site scripting (XSS) vulnerability in the MantisBT (2.3.x before 2.3.2) Timeline include page, used in My View (my_view_page.php) and User Information (view_user_page.php) pages, allows remote attackers to inject arbitrary code (if CSP settings permit it) through crafted PATH_INFO in a URL, due to use of unsanitized $_SERVER['PHP_SELF'] to generate URLs.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2017-7897
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:04 UTC · Revision 1
Source evidence
A cross-site scripting (XSS) vulnerability in the MantisBT (2.3.x before 2.3.2) Timeline include page, used in My View (my_view_page.php) and User Information (view_user_page.php) pages, allows remote attackers to inject arbitrary code (if CSP settings permit it) through crafted PATH_INFO in a URL, due to use of unsanitized $_SERVER['PHP_SELF'] to generate URLs.
osv:CVE-2017-7897
Complete source record
{
"id": "f5c7bcc62062f784e8df51f7f411e1a4addf878fb00d9c19c143e15e552fc5d2",
"url": "https://osv.dev/vulnerability/CVE-2017-7897",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2017-7897",
"summary": "A cross-site scripting (XSS) vulnerability in the MantisBT (2.3.x before 2.3.2) Timeline include page, used in My View (my_view_page.php) and User Information (view_user_page.php) pages, allows remote attackers to inject arbitrary code (if CSP settings permit it) through crafted PATH_INFO in a URL, due to use of unsanitized $_SERVER['PHP_SELF'] to generate URLs.",
"evidence": "osv:CVE-2017-7897",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2017-7897",
"aliases": [
"CVE-2017-7897",
"GHSA-8r2m-qhff-jm2c"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/mantisbt/mantisbt",
"type": "GIT",
"events": [
{
"introduced": "0c6dde3dea2ea43d1d38f72f44834436c6dd4d74"
},
{
"last_affected": "27b5b292c9814a40fdd5715fa499a82e29f6f866"
},
{
"fixed": "a1c719313d61b07bbe8700005807b8195fdc32f1"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:mantisbt:mantisbt:2.3.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.3.0"
},
{
"last_affected": "2.3.0"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:mantisbt:mantisbt:2.3.1:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.3.1"
},
{
"last_affected": "2.3.1"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "a1c719313d61b07bbe8700005807b8195fdc32f1"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"2.3.0",
"2.3.1",
"release-2.3.1",
"release-2.3.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-7897.json"
}
}
],
"modified": "2026-10-20T10:49:50.983656602Z",
"provider": "osv",
"references": [
"https://github.com/mantisbt/mantisbt/commit/a1c719313d61b07bbe8700005807b8195fdc32f1",
"https://github.com/mantisbt/mantisbt/pull/1094"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2017-7897",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 380864,
"published_at": "2017-04-18T17:59:00.163+00:00"
}