CVE-2021-20293 — resteasy-bom
MEDIUMCVE-2021-20293 is a medium-severity (CVSS 6.1) Cross-site Scripting (XSS) vulnerability in org.jboss.resteasy:resteasy-bom. The records list no fixed version yet; check the vendor advisory below and apply the mitigations in the meantime.
Cross-Site Scripting
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.jboss.resteasy:resteasy-bom☕org.jboss.resteasy:resteasy-coreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
A reflected Cross-Site Scripting (XSS) flaw was found in RESTEasy in all versions of RESTEasy up to 4.6.0.Final, where it did not properly handle URL encoding when calling @javax.ws.rs.PathParam without any @Produces MediaType. This flaw allows an attacker to launch a reflected XSS attack. The highest threat from this vulnerability is to data confidentiality and integrity.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.jboss.resteasy:resteasy-bom | all versions | No fix |
| ☕Maven | org.jboss.resteasy:resteasy-core | all versions | No fix |
Affected Products
oncommand insightnetappresteasyredhatDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.jboss.resteasy:resteasy-bom, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Remediation status
The records we use list no patched version of org.jboss.resteasy:resteasy-bom for CVE-2021-20293. Check the maintainer's advisory, and where your build allows, override or pin the dependency away from the vulnerable range.
Mitigate without a patch
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
| Product | Fixed in | Advisory |
|---|---|---|
| RHINT Camel-K 1.6.4 | see advisory | RHSA-2022:1029 |
| RHINT Service Registry 2.0.2 GA | resteasy-core | RHSA-2021:4100 |
Frequently Asked Questions
Is CVE-2021-20293 in your dependencies?
Find it across Maven, including transitive dependencies.