CVE-2021-33192: Cross-site scripting in Apache Jena Fuseki
Summary
CVE-2021-33192: Cross-site scripting in Apache Jena Fuseki. Affects org.apache.jena:jena-fuseki versions >= 2.0.0, < 4.1.0. Fixed in 4.1.0. How to fix ↓
Also tracked for
- apache-jena · Debian:12
The same CVE-2021-33192 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Apache Jena Fuseki is an open-source Java application that provides a SPARQL endpoint for querying RDF data. It allows users to interact with RDF datasets through a web interface or programmatically. This vulnerability affects Apache Jena Fuseki versions 2.0.0 to 4.0.0 (inclusive).
Vulnerability Detail
The HTML pages of Apache Jena Fuseki are susceptible to a cross-site scripting (XSS) vulnerability. An attacker can exploit this issue to execute arbitrary JavaScript code on certain page views. This could lead to various malicious activities, such as stealing sensitive information, session hijacking, or performing actions on behalf of the user.
How To Fix
Latest published version: 6.2.0 as of 22 Oct 2026
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
4.1.0
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
If upgrading to the latest version is not immediately feasible, you can implement a workaround to mitigate the risk of exploitation. One possible workaround is to sanitize user input before displaying it on HTML pages. This can be achieved by using appropriate encoding or escaping techniques to prevent the execution of malicious scripts. Here's an example of how to sanitize user input in Java:
import org.apache.commons.text.StringEscapeUtils;
public class Sanitizer {
public static String sanitize(String input) {
return StringEscapeUtils.escapeHtml4(input);
}
}
Conclusion
In conclusion, Apache Jena Fuseki versions 2.0.0 to 4.0.0 are vulnerable to a cross-site scripting (XSS) issue. It is crucial to upgrade to version 4.1.0 or later to mitigate the risk of exploitation. If immediate upgrade is not possible, implementing input sanitization techniques can provide temporary protection. For further assistance or support in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for org.apache.jena:jena-fuseki →
FAQ
Apache Jena Fuseki is a Java application that provides a SPARQL endpoint for querying RDF data. It allows users to interact with RDF datasets through a web interface or programmatically.
Cross-site scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. This can lead to various attacks, such as stealing sensitive information or performing actions on behalf of the user.
This vulnerability in Apache Jena Fuseki allows an attacker to execute arbitrary JavaScript code on certain page views. This can lead to unauthorized access, data theft, or other malicious activities.
To fix this vulnerability, it is recommended to upgrade Apache Jena Fuseki to version 4.1.0 or later. This version includes a patch that addresses the XSS vulnerability. Alternatively, you can sanitize user input before displaying it on HTML pages to mitigate the risk of exploitation.
You can find more information about Apache Jena Fuseki on the official project website or the Apache Jena documentation.
References
Related vulnerabilities
Recent vulnerabilities recorded for org.apache.jena:jena-fuseki.