CVE-2021-33192: Jena fuseki Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-phwj-86vx-cfjc
CVSS 6.1
CWE-79
Published
Advisory Summary

CVE-2021-33192 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Jena fuseki libraries in the Maven ecosystem. The issue involves cross-site scripting in apache jena fuseki. Remediation is available by upgrading affected packages to version 4.1.0.

CVE-2021-33192 at a Glance

CVE Identifier CVE-2021-33192
GHSA Identifier GHSA-phwj-86vx-cfjc
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Jena fuseki
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.1

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

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

How to Fix CVE-2021-33192

To remediate this vulnerability, upgrade all affected Jena fuseki 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.apache.jena:jena-fuseki fixed: 4.1.0
<dependency>
    <groupId>org.apache.jena</groupId>
    <artifactId>jena-fuseki</artifactId>
    <version>4.1.0</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.apache.jena

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.apache.jena

Analyze the terminal output to locate any version of Jena fuseki in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.jena 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 Jena fuseki, 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

A vulnerability in the HTML pages of Apache Jena Fuseki allows an attacker to execute arbitrary javascript on certain page views. This issue affects Apache Jena Fuseki from version 2.0.0 to version 4.0.0 (inclusive).

CVE-2021-33192 Affected Jena fuseki Versions

1 component(s)
Fixed Versions:
4.1.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.jena:jena-fuseki
Maven
≥ 2.0.0
< 4.1.0
4.1.0

References

Frequently Asked Questions

What is CVE-2021-33192?
CVE-2021-33192 is a security vulnerability in Jena fuseki involving Cross-site scripting in Apache Jena Fuseki under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Jena fuseki versions are affected?
Affected versions include releases prior to 4.1.0 across affected packages: org.apache.jena:jena-fuseki.
What version fixes CVE-2021-33192?
Upgrading to 4.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jena-fuseki affected?
Yes, org.apache.jena:jena-fuseki is affected in releases prior to 4.1.0. Upgrade your dependency to 4.1.0 or later.
What is the CVSS score of CVE-2021-33192?
CVE-2021-33192 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2021-33192?
CVE-2021-33192 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-2021-33192?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.jena'. 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-phwj-86vx-cfjc",
  "modified" : "2021-07-09T01:55:01Z",
  "published" : "2021-08-13T15:21:35Z",
  "aliases" : [ "CVE-2021-33192" ],
  "summary" : "Cross-site scripting in Apache Jena Fuseki",
  "details" : "A vulnerability in the HTML pages of Apache Jena Fuseki allows an attacker to execute arbitrary javascript on certain page views. This issue affects Apache Jena Fuseki from version 2.0.0 to version 4.0.0 (inclusive).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.jena:jena-fuseki"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "4.1.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.0.0"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-33192"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r684d8943d755a96fe90f8cd8df196737b6bde3f2b74e15a9bd479975%40%3Cusers.jena.apache.org%3E"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-07-06T15:42:15Z",
    "nvd_published_at" : "2021-07-05T10:15:00Z"
  }
}