<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Mon, 05 Oct 2026 08:29:25 +0000</lastBuildDate>
    <item>
      <title>fkie_cve-2025-61682</title>
      <link>https://vulnerability.circl.lu/vuln/fkie_cve-2025-61682</link>
      <description>&lt;p&gt;Semantic MediaWiki is a free, open-source extension to MediaWiki that lets users store and query data within the wiki&amp;#39;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.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;Semantic MediaWiki is a free, open-source extension to MediaWiki that lets users store and query data within the wiki&amp;#39;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.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/fkie_cve-2025-61682</guid>
    </item>
    <item>
      <title>GHSA-hg8h-557g-q8pp — Semantic MediaWiki vulnerable to stored XSS through wikitext via improper use of non-reserved data attributes</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-hg8h-557g-q8pp</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Packagist: mediawiki/semantic-media-wiki&lt;/p&gt;
&lt;p&gt;### Summary
The SemanticMediaWiki extension inserts the unsanitized value of a data attribute into the DOM as HTML, allowing for stored XSS through wikitext.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;In `ext.smw.js`, the `data-subtab` attribute of all elements with the `smw-subtab` class is parsed as JSON and appended to the `innerHTML` of the element:
https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/62f1fa765b626e21d88999b97a3e8029db9fd385/res/smw/ext.smw.js#L37-L42
However, most data attributes (except for reserved ones) like `data-subtab` can be used in wikitext. Therefore, it is possible to insert arbitrary HTML and JS through wikitext.
The decoded (`&amp;#34;` will turn to `&amp;amp;quot;`, but it will be decoded when it is retrieved through `.dataset`) value of the `data-subtab` attribute in the payload is `&amp;#34;&amp;lt;img src=&amp;#39;&amp;#39; onerror=alert(1)&amp;gt;&amp;#34;`. This is valid JSON and returns a string with `&amp;lt;img src=&amp;#39;&amp;#39; onerror=alert(1)&amp;gt;` when being decoded.&lt;/p&gt;
&lt;p&gt;### PoC&lt;/p&gt;
&lt;p&gt;1. Create a page with the following contents:
```html
{{#tag:div|
|class=smw-subtab
|data-subtab=&amp;#34;&amp;#34;&amp;lt;img src=&amp;#39;&amp;#39; onerror=alert(1)&amp;gt;&amp;#34;&amp;#34;
}}
```
2. Visit the page&lt;/p&gt;
&lt;p&gt;&amp;lt;img width=&amp;#34;991&amp;#34; height=&amp;#34;465&amp;#34; alt=&amp;#34;image&amp;#34; src=&amp;#34;https://github.com/user-attachments/assets/5d28d852-72d6-41dc-a59a-faac1610015f&amp;#34; /&amp;gt;
&amp;lt;img width=&amp;#34;497&amp;#34; height=&amp;#34;69&amp;#34; alt=&amp;#34;image&amp;#34; src=&amp;#34;https://github.com/user-attachments/assets/02309390-0b40-46d9-b690-de8cd25dba59&amp;#34; /&amp;gt;&lt;/p&gt;
&lt;p&gt;### Impact&lt;/p&gt;
&lt;p&gt;Arbitrary HTML can be inserted into the DOM by any user with the `edit` right, allowing for JavaScript to be executed.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Packagist: mediawiki/semantic-media-wiki&lt;/p&gt;
&lt;p&gt;### Summary
The SemanticMediaWiki extension inserts the unsanitized value of a data attribute into the DOM as HTML, allowing for stored XSS through wikitext.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;In `ext.smw.js`, the `data-subtab` attribute of all elements with the `smw-subtab` class is parsed as JSON and appended to the `innerHTML` of the element:
https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/62f1fa765b626e21d88999b97a3e8029db9fd385/res/smw/ext.smw.js#L37-L42
However, most data attributes (except for reserved ones) like `data-subtab` can be used in wikitext. Therefore, it is possible to insert arbitrary HTML and JS through wikitext.
The decoded (`&amp;#34;` will turn to `&amp;amp;quot;`, but it will be decoded when it is retrieved through `.dataset`) value of the `data-subtab` attribute in the payload is `&amp;#34;&amp;lt;img src=&amp;#39;&amp;#39; onerror=alert(1)&amp;gt;&amp;#34;`. This is valid JSON and returns a string with `&amp;lt;img src=&amp;#39;&amp;#39; onerror=alert(1)&amp;gt;` when being decoded.&lt;/p&gt;
&lt;p&gt;### PoC&lt;/p&gt;
&lt;p&gt;1. Create a page with the following contents:
```html
{{#tag:div|
|class=smw-subtab
|data-subtab=&amp;#34;&amp;#34;&amp;lt;img src=&amp;#39;&amp;#39; onerror=alert(1)&amp;gt;&amp;#34;&amp;#34;
}}
```
2. Visit the page&lt;/p&gt;
&lt;p&gt;&amp;lt;img width=&amp;#34;991&amp;#34; height=&amp;#34;465&amp;#34; alt=&amp;#34;image&amp;#34; src=&amp;#34;https://github.com/user-attachments/assets/5d28d852-72d6-41dc-a59a-faac1610015f&amp;#34; /&amp;gt;
&amp;lt;img width=&amp;#34;497&amp;#34; height=&amp;#34;69&amp;#34; alt=&amp;#34;image&amp;#34; src=&amp;#34;https://github.com/user-attachments/assets/02309390-0b40-46d9-b690-de8cd25dba59&amp;#34; /&amp;gt;&lt;/p&gt;
&lt;p&gt;### Impact&lt;/p&gt;
&lt;p&gt;Arbitrary HTML can be inserted into the DOM by any user with the `edit` right, allowing for JavaScript to be executed.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-hg8h-557g-q8pp</guid>
    </item>
  </channel>
</rss>
