CVE-2021-3536 — wildfly-parent
MEDIUMCVE-2021-3536 is a medium-severity (CVSS 4.8) Cross-site Scripting (XSS) vulnerability in org.wildfly:wildfly-parent. A fix is available for org.wildfly:wildfly-parent — see the affected versions and patch details below.
Cross-site Scripting in Wildfly
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
How urgent is this, really
CVE-2021-3536 plotted by exploitation likelihood (EPSS) against impact (CVSS). The shaded corner — EPSS 50%+ and CVSS 7.0+ — is where this CVE doesn't sit, though severity or exploitability alone can still warrant action.
Where this sits among everything scored
Of 377,333 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Real counts from FIRST.org, not a sample — log-scaled since the landscape is heavily right-skewed.
Real-World Exposure
org.wildfly:wildfly-parentReal-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 flaw was found in Wildfly in versions before 23.0.2.Final while creating a new role in domain mode via the admin console, it is possible to add a payload in the name field, leading to XSS. This affects Confidentiality and Integrity.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.wildfly:wildfly-parent | all versions | 23.0.2.Finalorg.wildfly:wildfly-parent:23.0.2.Final |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.wildfly:wildfly-parent, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.wildfly:wildfly-parent to 23.0.2.Final or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-3536 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like CVE-2021-3536 can be triaged on real exposure rather than presence alone.
Tailored to CVE-2021-3536. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
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.
This flaw does not affect Red Hat CodeReady Studio 12 because it uses the Wildfly client only. The domain mode is not used.
| Product | Fixed in | Advisory |
|---|---|---|
| EAP 7.3.8 | wildfly | RHSA-2021:2696 |
| Red Hat EAP-XP 2.0.0 via EAP 7.3.x base | wildfly | RHSA-2021:2755 |
| Red Hat Fuse 7.10 | wildfly | RHSA-2021:5134 |
| Red Hat JBoss Enterprise Application Platform | org.jboss.hal/hal-console:3.3.7.Final-redhat-00001 | RHSA-2021:3660 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-elytron-web-0:1.6.3-1.Final_redhat_00001.1.el6eap | RHSA-2021:2692 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-elytron-web-0:1.6.3-1.Final_redhat_00001.1.el7eap | RHSA-2021:2693 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-elytron-web-0:1.6.3-1.Final_redhat_00001.1.el8eap | RHSA-2021:2694 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-wildfly-0:7.4.1-2.GA_redhat_00003.1.el8eap | RHSA-2021:3658 |
Frequently Asked Questions
Is CVE-2021-3536 in your dependencies?
O3 Security finds CVE-2021-3536 across Maven dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.