CVE-2025-61682 Semantic MediaWiki vulnerable to stored XSS through wikitext via improper use of non-reserved data attributes

High 8.6 Published Updated

An attacker can inject malicious scripts via wikitext in Semantic MediaWiki, leading to stored XSS and potential code execution in victim browsers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-61682?

CVE-2025-61682 is a high-severity cross-site scripting vulnerability in SemanticMediaWiki, published on 18 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Semantic MediaWiki is a free, open-source extension to MediaWiki that lets users store and query data within the wiki's pages. Versions starting in 3.1.0 and prior to 7.0.0 insert the unsanitized value of a data attribute into the DOM as HTML, allowing for stored XSS through wikitext. Version 7.0.0 patches the issue.

Weakness: CWE-79

Which versions are affected by CVE-2025-61682?

2 open source packages ship an affected version, including mediawiki/semantic-media-wiki.

PackageAffectedFixed in
mediawiki/semantic-media-wiki PackagistFrom 3.1.07.0.0
mediawiki/semantic-media-wiki PackagistFrom 3.1.07.0.0

How do I fix CVE-2025-61682?

Upgrade mediawiki/semantic-media-wiki to 7.0.0 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-61682 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-61682 exists.

Sources

Also known as GHSA-hg8h-557g-q8pp.

Is CVE-2025-61682 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free