{"answers":{"affected":"3 open source packages ship an affected version, including org.wildfly:wildfly-parent and wildfly. It affects 9 products.","exploited":"There is no known exploitation of CVE-2021-3536 in the wild and no public exploit code.","fix":"Upgrade org.wildfly:wildfly-parent to 23.0.2.Final or later.","what":"CVE-2021-3536 is a medium-severity cross-site scripting vulnerability in Redhat Jboss Enterprise Application Platform, published on 20 May 2021. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-3536 and fix it if it is affected.\n\nWhat it is: CVE-2021-3536 is a medium-severity cross-site scripting vulnerability in Redhat Jboss Enterprise Application Platform, published on 20 May 2021. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-3536 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.wildfly:wildfly-parent (Maven): affected all versions; fixed in 23.0.2.Final\n- org.wildfly:wildfly-parent (Maven): affected all versions; fixed in 23.0.2.Final\n- wildfly (Bitnami): affected all versions; fixed in 23.0.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-3536/ (Markdown: https://insights.sbomify.com/CVE-2021-3536/index.md)","id":"CVE-2021-3536","markdown":"https://insights.sbomify.com/CVE-2021-3536/index.md","name":"CVE-2021-3536","record":{"aliases":["BIT-wildfly-2021-3536","GHSA-v2wx-jj66-2hp7"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"WildFly application server","requires_auth":"high_privilege","summary":"Attackers can inject scripts via the role name field in WildFly's domain mode admin console, compromising confidentiality and integrity.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"build_of_quarkus","vendor":"redhat"},{"product":"data_grid","vendor":"redhat"},{"product":"descision_manager","vendor":"redhat"},{"product":"integration_camel_k","vendor":"redhat"},{"product":"integration_camel_quarkus","vendor":"redhat"},{"product":"integration_service_registry","vendor":"redhat"},{"product":"jboss_a-mq","vendor":"redhat"},{"product":"jboss_enterprise_application_platform","vendor":"redhat"},{"product":"wildfly","vendor":"redhat"}],"cvss":{"score":4.8,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["Bitnami","Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Cross-site Scripting in Wildfly","id":"CVE-2021-3536","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"redhat:jboss_enterprise_application_platform","products":["redhat:jboss_enterprise_application_platform"],"type":"xss","year":"2021"},"n_packages":3,"n_references":1,"next":{"headline":"Nokogiri Implements libxml2 version vulnerable to null pointer dereferencing","id":"CVE-2021-3537"},"packages":[{"ecosystem":"Bitnami","fixed":["23.0.2"],"introduced":["0"],"last_affected":[],"package":"wildfly","purl":"pkg:bitnami/wildfly","source":"BIT-wildfly-2021-3536"},{"ecosystem":"Maven","fixed":["23.0.2.Final"],"introduced":["0"],"last_affected":[],"package":"org.wildfly:wildfly-parent","purl":null,"source":"GHSA-v2wx-jj66-2hp7"},{"ecosystem":"Maven","fixed":["23.0.2.Final"],"introduced":["0"],"last_affected":[],"package":"org.wildfly:wildfly-parent","purl":"pkg:maven/org.wildfly/wildfly-parent","source":"GHSA-v2wx-jj66-2hp7"}],"prev":{"headline":"Cross-site scripting in Rapid7 Nexpose","id":"CVE-2021-3535"},"products":["wildfly"],"published":"2021-05-20","related":[{"cvss_score":7.5,"headline":"Undertow client not checking server identity presented by server certificate in https connections","id":"CVE-2022-4492","kev_date_added":null,"published":"2023-02-23"},{"cvss_score":6.5,"headline":"quarkus-core vulnerable to client driven TLS cipher downgrading","id":"CVE-2023-2974","kev_date_added":null,"published":"2023-07-04"},{"cvss_score":6.5,"headline":"Keycloak Untrusted Certificate Validation vulnerability","id":"CVE-2023-1664","kev_date_added":null,"published":"2023-05-26"},{"cvss_score":6.1,"headline":"SmallRye Health UI Cross-site Scripting vulnerability","id":"CVE-2021-3914","kev_date_added":null,"published":"2022-08-25"},{"cvss_score":5.3,"headline":"Quarkus: potential invalid reuse of context when @cacheresult on a uni is used","id":"CVE-2023-6393","kev_date_added":null,"published":"2023-12-06"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"Attackers can inject scripts via the role name field in WildFly's domain mode admin console, compromising confidentiality and integrity.","url":"https://insights.sbomify.com/CVE-2021-3536/"}