Loading...
Skip to main content

CVE-2023-35156

CRITICAL

XWiki Platform vulnerable to reflected cross-site scripting via xredirect parameter in delete template

Published June 22, 2023Updated November 8, 2023Source: osv

Summary

### Impact Users are able to forge an URL with a payload allowing to inject Javascript in the page (XSS). It's possible to exploit the delete template to perform a XSS, e.g. by using URL such as: > xwiki/bin/get/FlamingoThemes/Cerulean?xpage=xpart&vm=delete.vm&xredirect=javascript:alert(document.domain) This vulnerability exists since XWiki 6.0-rc-1. ### Patches The vulnerability has been patched in XWiki 14.10.6 and 15.1. Note that a partial patch has been provided in 14.10.5 but wasn't enough to entirely fix the vulnerability. ### Workarounds It's possible to workaround the vulnerability by editing the template delete.vm to perform checks on it, but note that the appropriate fix involves new APIs that have been recently introduced in XWiki. See the referenced jira tickets. ### References * Jira ticket about the original vulnerability: https://jira.xwiki.org/browse/XWIKI-20341 * Commit containing the first fix in the template: https://github.com/xwiki/xwiki-platform/commit/e80d22d193df364b07bab7925572720f91a8984a * Jira ticket about the second part of the vulnerability found after 14.10.5: https://jira.xwiki.org/browse/XWIKI-20672 * Commits containing the second fix in the template: * https://github.com/xwiki/xwiki-platform/commit/13875a6437d4525ac4aeea25918f2d2dffac9ee1 * https://github.com/xwiki/xwiki-platform/commit/24ec12890ac7fa6daec8d0b3435cfcba11362fd5 * Introduction of the macro used for fixing all those vulnerabilities: https://jira.xwiki.org/browse/XWIKI-20583 ### For more information If you have any questions or comments about this advisory: * Open an issue in [Jira XWiki.org](https://jira.xwiki.org/) * Email us at [Security Mailing List](mailto:security@xwiki.org) ### Attribution This vulnerability has been reported by René de Sain @renniepak.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.xwiki.platform:xwiki-platform-flamingo-skin-resources to 15.1 or later
<!-- Update pom.xml dependency version to 15.1 for org.xwiki.platform:xwiki-platform-flamingo-skin-resources -->
Maven
Update org.xwiki.platform:xwiki-platform-flamingo-skin-resources to 14.10.6 or later
<!-- Update pom.xml dependency version to 14.10.6 for org.xwiki.platform:xwiki-platform-flamingo-skin-resources -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

PackageEcosystemAffectedFixed In
org.xwiki.platform:xwiki-platform-flamingo-skin-resources
maven
All versions15.1
org.xwiki.platform:xwiki-platform-flamingo-skin-resources
maven
All versions14.10.6

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.6 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2023-35156?
XWiki Platform vulnerable to reflected cross-site scripting via xredirect parameter in delete template This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.6/10).
How do I check if my project is affected by CVE-2023-35156?
CVE-2023-35156 affects org.xwiki.platform:xwiki-platform-flamingo-skin-resources. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-35156 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.6

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-834c-x29c-f42c

Related CVEs

  • CVE-2026-77414
    CRITICAL

    JSONata vulnerable to Arbitrary Code Execution via crafted JSONata expressions

  • CVE-2026-77415
    CRITICAL

    JSONata vulnerable to Arbitrary Code Execution via crafted JSONata expressions

  • CVE-2026-77413
    CRITICAL

    JSONata: Arbitrary Code Execution via crafted JSONata expressions

  • CVE-2023-46732
    CRITICAL

    XWiki Platform vulnerable to reflected cross-site scripting through revision parameter in content menu

  • CVE-2023-35158
    CRITICAL

    XWiki Platform vulnerable to reflected cross-site scripting via xredirect parameter in restore template

  • CVE-2023-35162
    CRITICAL

    XWiki Platform vulnerable to cross-site scripting via xcontinue parameter in previewactions template

  • CVE-2023-29207
    HIGH

    Improper Neutralization of Script-Related HTML Tags (XSS) in the LiveTable Macro

  • CVE-2025-66472
    MEDIUM

    XWiki vulnerable to a reflected XSS via xredirect parameter in DeleteApplication

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies