{"answers":{"affected":"It affects 4 products.","exploited":"There is no known exploitation of CVE-2023-3971 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2023-3971 is a high-severity cross-site scripting vulnerability in Red Hat Ansible Automation Platform 2.3 for RHEL 8, published on 4 Oct 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-3971 and fix it if it is affected.\n\nWhat it is: CVE-2023-3971 is a high-severity cross-site scripting vulnerability in Red Hat Ansible Automation Platform 2.3 for RHEL 8, published on 4 Oct 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-3971 in the wild and no public exploit code.\n\nAffected product: Red Hat Ansible Automation Platform 2.3 for RHEL 8. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2023-3971/ (Markdown: https://insights.sbomify.com/CVE-2023-3971/index.md)","id":"CVE-2023-3971","markdown":"https://insights.sbomify.com/CVE-2023-3971/index.md","name":"CVE-2023-3971","record":{"aliases":["GHSA-p5xq-xr8f-3wj4","RHSA-2023:4340","RHSA-2023:4590"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["account_takeover","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Ansible Automation Platform","requires_auth":"low_privilege","summary":"Attackers can inject HTML into custom login pages to capture user credentials, leading to account compromise in Ansible Automation Platform.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"ansible_automation_controller","vendor":"redhat"},{"product":"ansible_automation_platform","vendor":"redhat"},{"product":"ansible_developer","vendor":"redhat"},{"product":"ansible_inside","vendor":"redhat"}],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"}],"description":"An HTML injection flaw was found in Controller in the user interface settings. This flaw allows an attacker to capture credentials by creating a custom login page by injecting HTML, resulting in a complete compromise.","ecosystems":["Red Hat:ansible_automation_platform:2.3::el8","Red Hat:ansible_automation_platform:2.3::el9","Red Hat:ansible_automation_platform:2.4::el8","Red Hat:ansible_automation_platform:2.4::el9"],"exploits":{"exploitdb":0,"first_seen":"2023-10-20","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-10-20T18:11:22Z","kind":"github_poc","ref":"https://github.com/ashangp923/CVE-2023-3971","stars":0,"title":"To find HTML injection and XSS "}],"tier":"poc_unverified"},"has_fix":true,"headline":"Controller: html injection in custom login info","id":"CVE-2023-3971","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2023"},"n_packages":20,"n_references":4,"next":{"headline":"Insights-client: unsafe handling of temporary files and directories","id":"CVE-2023-3972"},"packages":[{"ecosystem":"Red Hat:ansible_automation_platform:2.3::el8","fixed":["0:4.3.11-1.el8ap"],"introduced":["0"],"last_affected":[],"package":"automation-controller","purl":"pkg:rpm/redhat/automation-controller","source":"RHSA-2023:4590"},{"ecosystem":"Red Hat:ansible_automation_platform:2.3::el8","fixed":["0:4.3.11-1.el8ap"],"introduced":["0"],"last_affected":[],"package":"automation-controller-cli","purl":"pkg:rpm/redhat/automation-controller-cli","source":"RHSA-2023:4590"},{"ecosystem":"Red Hat:ansible_automation_platform:2.3::el8","fixed":["0:4.3.11-1.el8ap"],"introduced":["0"],"last_affected":[],"package":"automation-controller-server","purl":"pkg:rpm/redhat/automation-controller-server","source":"RHSA-2023:4590"},{"ecosystem":"Red Hat:ansible_automation_platform:2.3::el8","fixed":["0:4.3.11-1.el8ap"],"introduced":["0"],"last_affected":[],"package":"automation-controller-ui","purl":"pkg:rpm/redhat/automation-controller-ui","source":"RHSA-2023:4590"},{"ecosystem":"Red Hat:ansible_automation_platform:2.3::el8","fixed":["0:4.3.11-1.el8ap"],"introduced":["0"],"last_affected":[],"package":"automation-controller-venv-tower","purl":"pkg:rpm/redhat/automation-controller-venv-tower","source":"RHSA-2023:4590"},{"ecosystem":"Red Hat:ansible_automation_platform:2.3::el9","fixed":["0:4.3.11-1.el9ap"],"introduced":["0"],"last_affected":[],"package":"automation-controller","purl":"pkg:rpm/redhat/automation-controller","source":"RHSA-2023:4590"},{"ecosystem":"Red Hat:ansible_automation_platform:2.3::el9","fixed":["0:4.3.11-1.el9ap"],"introduced":["0"],"last_affected":[],"package":"automation-controller-cli","purl":"pkg:rpm/redhat/automation-controller-cli","source":"RHSA-2023:4590"},{"ecosystem":"Red Hat:ansible_automation_platform:2.3::el9","fixed":["0:4.3.11-1.el9ap"],"introduced":["0"],"last_affected":[],"package":"automation-controller-server","purl":"pkg:rpm/redhat/automation-controller-server","source":"RHSA-2023:4590"},{"ecosystem":"Red Hat:ansible_automation_platform:2.3::el9","fixed":["0:4.3.11-1.el9ap"],"introduced":["0"],"last_affected":[],"package":"automation-controller-ui","purl":"pkg:rpm/redhat/automation-controller-ui","source":"RHSA-2023:4590"},{"ecosystem":"Red Hat:ansible_automation_platform:2.3::el9","fixed":["0:4.3.11-1.el9ap"],"introduced":["0"],"last_affected":[],"package":"automation-controller-venv-tower","purl":"pkg:rpm/redhat/automation-controller-venv-tower","source":"RHSA-2023:4590"},{"ecosystem":"Red Hat:ansible_automation_platform:2.4::el8","fixed":["0:4.4.1-1.el8ap"],"introduced":["0"],"last_affected":[],"package":"automation-controller","purl":"pkg:rpm/redhat/automation-controller","source":"RHSA-2023:4340"},{"ecosystem":"Red Hat:ansible_automation_platform:2.4::el8","fixed":["0:4.4.1-1.el8ap"],"introduced":["0"],"last_affected":[],"package":"automation-controller-cli","purl":"pkg:rpm/redhat/automation-controller-cli","source":"RHSA-2023:4340"},{"ecosystem":"Red Hat:ansible_automation_platform:2.4::el8","fixed":["0:4.4.1-1.el8ap"],"introduced":["0"],"last_affected":[],"package":"automation-controller-server","purl":"pkg:rpm/redhat/automation-controller-server","source":"RHSA-2023:4340"},{"ecosystem":"Red Hat:ansible_automation_platform:2.4::el8","fixed":["0:4.4.1-1.el8ap"],"introduced":["0"],"last_affected":[],"package":"automation-controller-ui","purl":"pkg:rpm/redhat/automation-controller-ui","source":"RHSA-2023:4340"},{"ecosystem":"Red Hat:ansible_automation_platform:2.4::el8","fixed":["0:4.4.1-1.el8ap"],"introduced":["0"],"last_affected":[],"package":"automation-controller-venv-tower","purl":"pkg:rpm/redhat/automation-controller-venv-tower","source":"RHSA-2023:4340"},{"ecosystem":"Red Hat:ansible_automation_platform:2.4::el9","fixed":["0:4.4.1-1.el9ap"],"introduced":["0"],"last_affected":[],"package":"automation-controller","purl":"pkg:rpm/redhat/automation-controller","source":"RHSA-2023:4340"},{"ecosystem":"Red Hat:ansible_automation_platform:2.4::el9","fixed":["0:4.4.1-1.el9ap"],"introduced":["0"],"last_affected":[],"package":"automation-controller-cli","purl":"pkg:rpm/redhat/automation-controller-cli","source":"RHSA-2023:4340"},{"ecosystem":"Red Hat:ansible_automation_platform:2.4::el9","fixed":["0:4.4.1-1.el9ap"],"introduced":["0"],"last_affected":[],"package":"automation-controller-server","purl":"pkg:rpm/redhat/automation-controller-server","source":"RHSA-2023:4340"},{"ecosystem":"Red Hat:ansible_automation_platform:2.4::el9","fixed":["0:4.4.1-1.el9ap"],"introduced":["0"],"last_affected":[],"package":"automation-controller-ui","purl":"pkg:rpm/redhat/automation-controller-ui","source":"RHSA-2023:4340"},{"ecosystem":"Red Hat:ansible_automation_platform:2.4::el9","fixed":["0:4.4.1-1.el9ap"],"introduced":["0"],"last_affected":[],"package":"automation-controller-venv-tower","purl":"pkg:rpm/redhat/automation-controller-venv-tower","source":"RHSA-2023:4340"}],"prev":{"headline":"GZ Scripts Availability Booking Calendar PHP Image cross site scripting","id":"CVE-2023-3970"},"products":["Red Hat Ansible Automation Platform 2.3 for RHEL 8","Red Hat Ansible Automation Platform 2.3 for RHEL 9","Red Hat Ansible Automation Platform 2.4 for RHEL 8","Red Hat Ansible Automation Platform 2.4 for RHEL 9"],"published":"2023-10-04","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-20","vendors":["Red Hat"]},"summary":"Attackers can inject HTML into custom login pages to capture user credentials, leading to account compromise in Ansible Automation Platform.","url":"https://insights.sbomify.com/CVE-2023-3971/"}