VYPR
High severityNVD Advisory· Published May 31, 2022· Updated Apr 23, 2025

Cross-site Scripting in Filter Stream Converter Application in XWiki Platform

CVE-2022-29258

Description

XWiki Platform Filter UI provides a generic user interface to convert from a XWiki Filter input stream to an output stream with settings for each stream. Starting with versions 6.0-milestone-2 and 5.4.4 and prior to versions 12.10.11, 14.0-rc-1, 13.4.7, and 13.10.3, XWiki Platform Filter UI contains a possible cross-site scripting vector in the Filter.FilterStreamDescriptorForm wiki page related to pretty much all the form fields printed in the home page of the application. The issue is patched in versions 12.10.11, 14.0-rc-1, 13.4.7, and 13.10.3. The easiest workaround is to edit the wiki page Filter.FilterStreamDescriptorForm (with wiki editor) according to the instructions in the GitHub Security Advisory.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
org.xwiki.platform:xwiki-platform-filter-uiMaven
>= 5.4.4, < 12.10.1112.10.11
org.xwiki.platform:xwiki-platform-filter-uiMaven
>= 13.0.0, < 13.4.713.4.7
org.xwiki.platform:xwiki-platform-filter-uiMaven
>= 13.5.0, < 13.10.313.10.3

Affected products

1

Patches

1
21906acb5ee2

XWIKI-19293: Fix bad escaping

https://github.com/xwiki/xwiki-platformThomas MortagneJan 4, 2022via ghsa
1 file changed · +2 2
  • xwiki-platform-core/xwiki-platform-filter/xwiki-platform-filter-ui/src/main/resources/Filter/FilterStreamDescriptorForm.xml+2 2 modified
    @@ -58,9 +58,9 @@
           &lt;dd&gt;
             ## TODO: design a real framework to generate form by type
             #if (($descriptor.defaultValue || "$!descriptor.defaultValue" != '') &amp;&amp; ($descriptor.type.getName() == 'boolean' || $descriptor.type.getName() == 'int' || $descriptor.type.getName() == 'java.lang.String'))
    -          &lt;input type="text" id="$descriptorId" name="$descriptorId" value="#if($request.get($descriptorId))$request.get($descriptorId)#else$descriptor.defaultValue#end"/&gt;
    +          &lt;input type="text" id="$descriptorId" name="$descriptorId" value="#if($request.get($descriptorId))$escapetool.xml($request.get($descriptorId))#else$descriptor.defaultValue#end"/&gt;
             #else
    -          &lt;input type="text" id="$descriptorId" name="$descriptorId"#if($request.get($descriptorId))value="$request.get($descriptorId)"#end/&gt;
    +          &lt;input type="text" id="$descriptorId" name="$descriptorId"#if($request.get($descriptorId))value="$escapetool.xml($request.get($descriptorId))"#end/&gt;
             #end
           &lt;/dd&gt;
         #end
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

5

News mentions

0

No linked articles in our index yet.