# CVE-2020-35474: In MediaWiki before 1.35.1, the combination of Html::rawElement and Message::text leads to XSS because the definition of MediaWiki:recentch…

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.04%, higher than 64% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-12-18T07:30:48.000Z
- Modified: 2026-06-17T03:13:46.400Z
- Also known as: BIT-MEDIAWIKI-2020-35474
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

In MediaWiki before 1.35.1, the combination of Html::rawElement and Message::text leads to XSS because the definition of MediaWiki:recentchanges-legend-watchlistexpiry can be changed onwiki so that the output is raw HTML.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mediawiki mediawiki: before 1.35.1
- fedoraproject fedora: 33
- mediawiki (Bitnami): before 1.35.1

## Every score

- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://phabricator.wikimedia.org/T268894> (exploit, third-party-advisory, web)
- <https://lists.wikimedia.org/pipermail/mediawiki-announce/2020-December/000268.html> (mailing-list, release-notes, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/STT5Z4A3BCXVH3WIPICWU2FP4IPIMUPC/> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-35474> (web)

## Sources

- CVE List: [CVE-2020-35474](https://www.cve.org/CVERecord?id=CVE-2020-35474), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-35474](https://nvd.nist.gov/vuln/detail/CVE-2020-35474), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MEDIAWIKI-2020-35474](https://osv.dev/vulnerability/BIT-MEDIAWIKI-2020-35474), Apache-2.0, modified 2025-04-03

---

Page: https://cve.day/CVE-2020-35474 · Whole record: https://cve.day/CVE-2020-35474.json · Rebuilt by cve.day 2026-11-25T22:57:56.316Z
