8.7high
malicious SVG attachment causing stored XSS vulnerability in MoinMoin
- Severity
- 8.7high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.75% (higher than 78% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-4q96-6xhq-ff43PYSEC-2020-241
Description
MoinMoin is a wiki engine. In MoinMoin before version 1.9.11, an attacker with write permissions can upload an SVG file that contains malicious javascript. This javascript will be executed in a user's browser when the user is viewing that SVG file on the wiki. Users are strongly advised to upgrade to a patched version. MoinMoin Wiki 1.9.11 has the necessary fixes and also contains other important fixes.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| moinwiki moin-1.9 | < 1.9.11 | CVE List |
| moin (PyPI) | before 1.9.11, before 31de9139d0aabc171e94032168399b4a0b2a88a2 | GitHub Advisory Database, PyPA Advisory Database |
| moinmo moinmoin | before 1.9.11 | NVD |
All scores
| GitHub_M | 8.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| GitHub | 8.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Classification
What each source says
CVE List
MoinMoin is a wiki engine. In MoinMoin before version 1.9.11, an attacker with write permissions can upload an SVG file that contains malicious javascript. This javascript will be executed in a user's browser when the user is viewing that SVG file on the wiki. Users are strongly advised to upgrade to a patched version. MoinMoin Wiki 1.9.11 has the necessary fixes and also contains other important fixes.
GitHub Advisory Database
Impact
An attacker with write permissions can upload an SVG file that contains malicious javascript. This javascript will be executed in a user's browser when the user is viewing that SVG file on the wiki.
Patches
Users are strongly advised to upgrade to a patched version.
MoinMoin Wiki 1.9.11 has the necessary fixes and also contains other important fixes.
Workarounds
It is not advised to work around this, but to upgrade MoinMoin to a patched version.
That said, a work around via a Content Security Policy in the web server might be possible.
Also, it is of course helpful if you give write permissions (which include uploading attachments) only to trusted users.
For more information
If you have any questions or comments about this advisory, email me at twaldmann@thinkmo.de.
Credits
This vulnerability was discovered by:
Catarina Leite from the Checkmarx SCA AppSec team
NVD (es)
MoinMoin es un motor de wiki. En MoinMoin antes de la versión 1.9.11, un atacante con permisos de escritura puede cargar un archivo SVG que contiene javascript malicioso. Este javascript se ejecutará en el navegador de un usuario cuando el usuario esté viendo ese archivo SVG en la wiki. Se recomienda encarecidamente a los usuarios que se actualicen a una versión parcheada. MoinMoin Wiki versión 1.9.11 tiene las correcciones necesarias y también contiene otras correcciones importantes
References
| https://github.com/moinwiki/moin-1.9/security/advisories/GHSA-4q96-6xhq-ff43 | advisory, third-party-advisory, web | |
| https://github.com/moinwiki/moin-1.9/releases/tag/1.9.11 | release-notes, third-party-advisory, web | |
| https://github.com/moinwiki/moin-1.9/commit/31de9139d0aabc171e94032168399b4a0b2a88a2 | fix, patch, third-party-advisory, web | |
| https://advisory.checkmarx.net/advisory/CX-2020-4285 | advisory, exploit, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-15275 | advisory | |
| https://github.com/moinwiki/moin-1.9 | package | |
| https://github.com/pypa/advisory-database/tree/main/vulns/moin/PYSEC-2020-241.yaml | web | |
| https://pypi.org/project/moin | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-15275 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4q96-6xhq-ff43 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2020-15275 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2020-241 changed 2023-11-08 | CC-BY-4.0 |