Vulnerabilities in pkg:maven/org.xwiki.rendering/xwiki-rendering-syntax-annotatedxhtml

PACKAGE
Advisory Identifier: GHSA-6gf5-c898-7rxp
Advisory Summary

CVE-2023-32070 is a CRITICAL (CVSS 9.0) improper neutralization of script vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Xwiki rendering syntax xhtml libraries in the Maven ecosystem. The issue involves improper neutralization of script in attributes in xwiki (x)html renderers. Remediation is available by upgrading affected packages to version 14.6-rc-1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.xwiki.rendering/xwiki-rendering-syntax-annotatedxhtml

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.xwiki.rendering/xwiki-rendering-syntax-annotatedxhtml. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-6gf5-c898-7rxp CVE-2023-32070 CRITICAL Improper Neutralization of Script in Attributes in XWiki (X)HTML renderers

CVE-2023-32070 at a Glance

CVE Identifier CVE-2023-32070
GHSA Identifier GHSA-6gf5-c898-7rxp
Severity CRITICAL
CVSS v3.1 Base Score 9.0
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Xwiki rendering syntax xhtml
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2023-32070

To remediate this vulnerability, upgrade all affected Xwiki rendering syntax xhtml dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.xwiki.rendering:xwiki-rendering-syntax-xhtml fixed: 14.6-rc-1
<dependency>
    <groupId>org.xwiki.rendering</groupId>
    <artifactId>xwiki-rendering-syntax-xhtml</artifactId>
    <version>14.6-rc-1</version>
</dependency>
org.xwiki.platform:xwiki-core-rendering-api fixed: Latest secure release
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-core-rendering-api</artifactId>
    <version>Latest secure release</version>
</dependency>
org.xwiki.rendering:xwiki-rendering-syntax-html fixed: 14.6-rc-1
<dependency>
    <groupId>org.xwiki.rendering</groupId>
    <artifactId>xwiki-rendering-syntax-html</artifactId>
    <version>14.6-rc-1</version>
</dependency>
org.xwiki.rendering:xwiki-rendering-syntax-html5 fixed: 14.6-rc-1
<dependency>
    <groupId>org.xwiki.rendering</groupId>
    <artifactId>xwiki-rendering-syntax-html5</artifactId>
    <version>14.6-rc-1</version>
</dependency>
org.xwiki.rendering:xwiki-rendering-syntax-annotatedxhtml fixed: 14.6-rc-1
<dependency>
    <groupId>org.xwiki.rendering</groupId>
    <artifactId>xwiki-rendering-syntax-annotatedxhtml</artifactId>
    <version>14.6-rc-1</version>
</dependency>
org.xwiki.rendering:xwiki-rendering-syntax-annotatedhtml5 fixed: 14.6-rc-1
<dependency>
    <groupId>org.xwiki.rendering</groupId>
    <artifactId>xwiki-rendering-syntax-annotatedhtml5</artifactId>
    <version>14.6-rc-1</version>
</dependency>
org.xwiki.platform:xwiki-platform-annotation-core fixed: 14.6-rc-1
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-annotation-core</artifactId>
    <version>14.6-rc-1</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.xwiki.rendering

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-32070, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.xwiki.rendering

Analyze the terminal output to locate any version of Xwiki rendering syntax xhtml in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 14.6-rc-1), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.xwiki.rendering command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Xwiki rendering syntax xhtml, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact HTML rendering didn't check for dangerous attributes/attribute values. This allowed cross-site scripting (XSS) attacks via attributes and link URLs, e.g., supported in XWiki syntax. ### Patches This has been patched in XWiki 14.6 RC1. ### Workarounds There are no known workarounds apart from upgrading to a fixed version. ### References * https://github.com/xwiki/xwiki-rendering/commit/c40e2f5f9482ec6c3e71dbf1fff5ba8a5e44cdc1 * https://jira.xwiki.org/browse/XRENDERING-663 ### 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)

CVE-2023-32070 Affected Xwiki rendering syntax xhtml Versions

7 component(s)
Fixed Versions:
14.6-rc-1
Product / Package Ecosystem Affected Versions Fixed Version
org.xwiki.rendering:xwiki-rendering-syntax-xhtml
Maven
< 14.6-rc-1
14.6-rc-1
org.xwiki.platform:xwiki-core-rendering-api
Maven
≤ 3.0-milestone-2
org.xwiki.rendering:xwiki-rendering-syntax-html
Maven
< 14.6-rc-1
14.6-rc-1
org.xwiki.rendering:xwiki-rendering-syntax-html5
Maven
< 14.6-rc-1
14.6-rc-1
org.xwiki.rendering:xwiki-rendering-syntax-annotatedxhtml
Maven
< 14.6-rc-1
14.6-rc-1
org.xwiki.rendering:xwiki-rendering-syntax-annotatedhtml5
Maven
< 14.6-rc-1
14.6-rc-1
org.xwiki.platform:xwiki-platform-annotation-core
Maven
< 14.6-rc-1
14.6-rc-1

References

Frequently Asked Questions

What is CVE-2023-32070?
CVE-2023-32070 is a security vulnerability in Xwiki rendering syntax xhtml involving Improper Neutralization of Script in Attributes in XWiki (X)HTML renderers under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Xwiki rendering syntax xhtml versions are affected?
Affected versions include releases prior to 14.6-rc-1 across affected packages: org.xwiki.rendering:xwiki-rendering-syntax-xhtml, org.xwiki.platform:xwiki-core-rendering-api, org.xwiki.rendering:xwiki-rendering-syntax-html, org.xwiki.rendering:xwiki-rendering-syntax-html5, org.xwiki.rendering:xwiki-rendering-syntax-annotatedxhtml, org.xwiki.rendering:xwiki-rendering-syntax-annotatedhtml5, org.xwiki.platform:xwiki-platform-annotation-core.
What version fixes CVE-2023-32070?
Upgrading to 14.6-rc-1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is xwiki-rendering-syntax-xhtml affected?
Yes, org.xwiki.rendering:xwiki-rendering-syntax-xhtml is affected in releases prior to 14.6-rc-1. Upgrade your dependency to 14.6-rc-1 or later.
Is xwiki-core-rendering-api affected?
Yes, org.xwiki.platform:xwiki-core-rendering-api is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2023-32070?
CVE-2023-32070 has a CVSS v3.1 base score of 9.0 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2023-32070?
CVE-2023-32070 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Maven dependencies for CVE-2023-32070?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.xwiki.rendering'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-6gf5-c898-7rxp",
  "modified" : "2023-05-11T20:37:30Z",
  "published" : "2023-05-11T20:37:30Z",
  "aliases" : [ "CVE-2023-32070" ],
  "summary" : "Improper Neutralization of Script in Attributes in XWiki (X)HTML renderers",
  "details" : "### Impact\n\nHTML rendering didn't check for dangerous attributes/attribute values. This allowed cross-site scripting (XSS) attacks via attributes and link URLs, e.g., supported in XWiki syntax.\n\n### Patches\nThis has been patched in XWiki 14.6 RC1.\n\n### Workarounds\nThere are no known workarounds apart from upgrading to a fixed version.\n\n### References\n* https://github.com/xwiki/xwiki-rendering/commit/c40e2f5f9482ec6c3e71dbf1fff5ba8a5e44cdc1\n* https://jira.xwiki.org/browse/XRENDERING-663\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira XWiki.org](https://jira.xwiki.org/)\n* Email us at [Security Mailing List](mailto:security@xwiki.org)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.rendering:xwiki-rendering-syntax-xhtml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "14.6-rc-1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-core-rendering-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "3.0-milestone-2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.rendering:xwiki-rendering-syntax-html"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "14.6-rc-1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.rendering:xwiki-rendering-syntax-html5"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "14.6-rc-1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.rendering:xwiki-rendering-syntax-annotatedxhtml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "14.6-rc-1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.rendering:xwiki-rendering-syntax-annotatedhtml5"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "14.6-rc-1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-annotation-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "14.6-rc-1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/xwiki/xwiki-rendering/security/advisories/GHSA-6gf5-c898-7rxp"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-32070"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xwiki/xwiki-rendering/commit/c40e2f5f9482ec6c3e71dbf1fff5ba8a5e44cdc1"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/xwiki/xwiki-rendering"
  }, {
    "type" : "WEB",
    "url" : "https://jira.xwiki.org/browse/XRENDERING-663"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79", "CWE-83" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-05-11T20:37:30Z",
    "nvd_published_at" : "2023-05-10T18:15:10Z"
  }
}