{"id":"CVE-2024-40886","aliases":["CVE-2024-40886","GHSA-hrf9-rm95-fpf3","GO-2024-3097"],"related":[],"kind":"vulnerability","state":"published","title":"One-click Client-Side Path Traversal Leading to CSRF in User Management admin page","summary":"Mattermost versions 9.9.x <= 9.9.1, 9.5.x <= 9.5.7, 9.10.x <= 9.10.0, 9.8.x <= 9.8.2 fail to sanitize user inputs in the frontend that are used for redirection which allows for a one-click client-side path traversal that is leading to CSRF in User Management page of the system console.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Mattermost versions 9.9.x <= 9.9.1, 9.5.x <= 9.5.7, 9.10.x <= 9.10.0, 9.8.x <= 9.8.2 fail to sanitize user inputs in the frontend that are used for redirection which allows for a one-click client-side path traversal that is leading to CSRF in User Management page of the system console.","source":"cvelist"},{"lang":"en","text":"Mattermost Cross-Site Request Forgery vulnerability in github.com/mattermost/mattermost-server","format":"markdown","source":"go"},{"lang":"es","text":"Las versiones de Mattermost 9.9.x &lt;= 9.9.1, 9.5.x &lt;= 9.5.7, 9.10.x &lt;= 9.10.0, 9.8.x &lt;= 9.8.2 no desinfectan las entradas del usuario en la interfaz que se utilizan para la redirección lo que permite path traversal del lado del cliente con un solo clic que conduce a CSRF en la página Administración de usuarios de la consola del sistema.","source":"nvd"}],"published":"2024-08-22T06:32:11.786Z","modified":"2026-06-17T07:46:47.850Z","severity":{"scorer":"Mattermost","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L","score":4.6,"rating":"MEDIUM"},"severities":[{"scorer":"Mattermost","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L","score":4.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L","score":4.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-352"],"affected":[{"ranges":[{"type":"semver","introduced":"9.9.0","lastAffected":"9.9.1","status":"affected"},{"type":"semver","introduced":"9.5.0","lastAffected":"9.5.7","status":"affected"},{"version":"9.10.0","status":"affected"},{"type":"semver","introduced":"9.8.0","lastAffected":"9.8.2","status":"affected"},{"version":"9.11.0","status":"unaffected"},{"version":"9.9.2","status":"unaffected"},{"version":"9.5.8","status":"unaffected"},{"version":"9.10.1","status":"unaffected"},{"version":"9.8.3","status":"unaffected"}],"vendor":"Mattermost","product":"Mattermost","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"9.9.0","status":"affected","fixed":"9.9.2"}],"ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","purl":"pkg:golang/github.com/mattermost/mattermost/server/v8","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"9.5.0","status":"affected","fixed":"9.5.8"}],"ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","purl":"pkg:golang/github.com/mattermost/mattermost/server/v8","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"9.10.0","status":"affected","fixed":"9.10.1"}],"ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","purl":"pkg:golang/github.com/mattermost/mattermost/server/v8","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"9.8.0","status":"affected","fixed":"9.8.3"}],"ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","purl":"pkg:golang/github.com/mattermost/mattermost/server/v8","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"9.5.0+incompatible","status":"affected","fixed":"9.5.8+incompatible"},{"type":"semver","introduced":"9.8.0+incompatible","status":"affected","fixed":"9.8.3+incompatible"},{"type":"semver","introduced":"9.9.0+incompatible","status":"affected","fixed":"9.9.2+incompatible"},{"type":"semver","introduced":"9.10.0+incompatible","status":"affected","fixed":"9.10.1+incompatible"}],"ecosystem":"Go","package":"github.com/mattermost/mattermost-server","purl":"pkg:golang/github.com/mattermost/mattermost-server","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","purl":"pkg:golang/github.com/mattermost/mattermost-server/v5","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","purl":"pkg:golang/github.com/mattermost/mattermost-server/v6","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","purl":"pkg:golang/github.com/mattermost/mattermost/server/v8","source":"go"},{"ranges":[{"status":"affected","introduced":"9.5.0","fixed":"9.5.8"},{"status":"affected","introduced":"9.8.0","fixed":"9.8.3"},{"status":"affected","introduced":"9.9.0","fixed":"9.9.2"},{"status":"affected","introduced":"9.10.0","fixed":"9.10.1"}],"vendor":"mattermost","product":"mattermost","cpe":"cpe:2.3:a:mattermost:mattermost:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://mattermost.com/security-updates","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-40886","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/mattermost/mattermost","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-hrf9-rm95-fpf3","tags":["advisory"],"sources":["go"]}],"credits":["DoyenSec"],"assigner":"Mattermost","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-08-22T13:13:52.990Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-40886","url":"https://www.cve.org/CVERecord?id=CVE-2024-40886","licence":"CVE Terms of Use","modified":"2024-08-22T13:14:08.968Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hrf9-rm95-fpf3","url":"https://github.com/advisories/GHSA-hrf9-rm95-fpf3","licence":"CC-BY-4.0","modified":"2024-08-30T17:42:37.271Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3097","url":"https://pkg.go.dev/vuln/GO-2024-3097","licence":"CC-BY-4.0","modified":"2026-03-03T04:55:45.903Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-40886","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-40886","licence":"Public domain","modified":"2026-06-17T07:46:47.850Z"}],"updatedAt":"2026-11-25T22:58:44.659Z","epss":{"score":0.00201,"percentile":0.10602,"date":"2026-12-01T12:00:22.000Z"}}