{"answers":{"affected":"3 open source packages ship an affected version, including golang.org/x/net. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-3978 in the wild and no public exploit code.","fix":"Upgrade golang.org/x/net to 0.13.0 or later.","what":"CVE-2023-3978 is a medium-severity cross-site scripting vulnerability in golang.org/x/net/html, published on 2 Aug 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-3978 and fix it if it is affected.\n\nWhat it is: CVE-2023-3978 is a medium-severity cross-site scripting vulnerability in golang.org/x/net/html, published on 2 Aug 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-3978 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- golang.org/x/net (Go): affected all versions; fixed in 0.13.0\n- golang.org/x/net (Go): affected all versions; fixed in 0.13.0\n- golang.org/x/net (Go): affected all versions; fixed in 0.13.0\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-3978/ (Markdown: https://insights.sbomify.com/CVE-2023-3978/index.md)","id":"CVE-2023-3978","markdown":"https://insights.sbomify.com/CVE-2023-3978/index.md","name":"CVE-2023-3978","record":{"aliases":["AZL-27810","AZL-27813","AZL-27818","AZL-27831","AZL-31690","AZL-31858","AZL-33331","AZL-34542","AZL-34582","AZL-34624","AZL-34907","AZL-35120","AZL-35299","AZL-35348","AZL-42867","AZL-43555","AZL-44055","CLEANSTART-2026-HD07846","CLEANSTART-2026-JY50773","DEBIAN-CVE-2023-3978","GHSA-2wrh-6pvc-2jm9","GO-2023-1988","MINI-4xg8-c4hc-rr6m","RHSA-2024:0944","SUSE-EL-9-CLIENT-TOOLS-2024-4019","SUSE-SU-2024:4010-1","SUSE-SU-2024:4011-1","SUSE-SU-2024:4019-1","UBUNTU-CVE-2023-3978","openSUSE-SU-2024:14218-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Go HTML library","requires_auth":"none","summary":"Attackers can inject malicious scripts via improperly escaped text nodes in the Go HTML library, leading to cross-site scripting attacks.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Go","cpe":[{"product":"networking","vendor":"golang"}],"cvss":{"score":6.1,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/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":"Text nodes not in the HTML namespace are incorrectly literally rendered, causing text which should be escaped to not be. This could lead to an XSS attack.","ecosystems":["Go","Red Hat:openshift:4.14::el8","Red Hat:openshift:4.14::el9","SUSE:EL-9:Update:Products:ManagerTools:Update","SUSE:Linux Enterprise Module for Package Hub 15 SP5","SUSE:Linux Enterprise Module for Package Hub 15 SP6","SUSE:Manager Client Tools 12","SUSE:Manager Client Tools 15","SUSE:Manager Client Tools for RHEL, Liberty and Clones 9-CLIENT-TOOLS","SUSE:Manager Client Tools for SLE Micro 5","SUSE:Manager Proxy Module 4.3","SUSE:Manager Server Module 4.3","openSUSE:Leap 15.5","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"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":"Improper rendering of text nodes in golang.org/x/net/html","id":"CVE-2023-3978","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"xss","year":"2023"},"n_packages":67,"n_references":3,"next":{"headline":"Incorrect Authorization in GitLab","id":"CVE-2023-3979"},"packages":[{"ecosystem":"Go","fixed":["0.13.0"],"introduced":["0"],"last_affected":[],"package":"golang.org/x/net","purl":null,"source":"GHSA-2wrh-6pvc-2jm9"},{"ecosystem":"Go","fixed":["0.13.0"],"introduced":["0"],"last_affected":[],"package":"golang.org/x/net","purl":"pkg:golang/golang.org/x/net","source":"GHSA-2wrh-6pvc-2jm9"},{"ecosystem":"Go","fixed":["0.13.0"],"introduced":["0"],"last_affected":[],"package":"golang.org/x/net","purl":"pkg:golang/golang.org/x/net","source":"GO-2023-1988"},{"ecosystem":"Red Hat:openshift:4.14::el8","fixed":["3:4.4.1-11.2.rhaos4.14.el8"],"introduced":["0"],"last_affected":[],"package":"podman","purl":"pkg:rpm/redhat/podman","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el8","fixed":["3:4.4.1-11.2.rhaos4.14.el8"],"introduced":["0"],"last_affected":[],"package":"podman-catatonit","purl":"pkg:rpm/redhat/podman-catatonit","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el8","fixed":["3:4.4.1-11.2.rhaos4.14.el8"],"introduced":["0"],"last_affected":[],"package":"podman-catatonit-debuginfo","purl":"pkg:rpm/redhat/podman-catatonit-debuginfo","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el8","fixed":["3:4.4.1-11.2.rhaos4.14.el8"],"introduced":["0"],"last_affected":[],"package":"podman-debuginfo","purl":"pkg:rpm/redhat/podman-debuginfo","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el8","fixed":["3:4.4.1-11.2.rhaos4.14.el8"],"introduced":["0"],"last_affected":[],"package":"podman-debugsource","purl":"pkg:rpm/redhat/podman-debugsource","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el8","fixed":["3:4.4.1-11.2.rhaos4.14.el8"],"introduced":["0"],"last_affected":[],"package":"podman-docker","purl":"pkg:rpm/redhat/podman-docker","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el8","fixed":["3:4.4.1-11.2.rhaos4.14.el8"],"introduced":["0"],"last_affected":[],"package":"podman-gvproxy","purl":"pkg:rpm/redhat/podman-gvproxy","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el8","fixed":["3:4.4.1-11.2.rhaos4.14.el8"],"introduced":["0"],"last_affected":[],"package":"podman-gvproxy-debuginfo","purl":"pkg:rpm/redhat/podman-gvproxy-debuginfo","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el8","fixed":["3:4.4.1-11.2.rhaos4.14.el8"],"introduced":["0"],"last_affected":[],"package":"podman-plugins","purl":"pkg:rpm/redhat/podman-plugins","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el8","fixed":["3:4.4.1-11.2.rhaos4.14.el8"],"introduced":["0"],"last_affected":[],"package":"podman-plugins-debuginfo","purl":"pkg:rpm/redhat/podman-plugins-debuginfo","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el8","fixed":["3:4.4.1-11.2.rhaos4.14.el8"],"introduced":["0"],"last_affected":[],"package":"podman-remote","purl":"pkg:rpm/redhat/podman-remote","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el8","fixed":["3:4.4.1-11.2.rhaos4.14.el8"],"introduced":["0"],"last_affected":[],"package":"podman-remote-debuginfo","purl":"pkg:rpm/redhat/podman-remote-debuginfo","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el8","fixed":["3:4.4.1-11.2.rhaos4.14.el8"],"introduced":["0"],"last_affected":[],"package":"podman-tests","purl":"pkg:rpm/redhat/podman-tests","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el9","fixed":["3:4.4.1-11.2.rhaos4.14.el9"],"introduced":["0"],"last_affected":[],"package":"podman","purl":"pkg:rpm/redhat/podman","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el9","fixed":["3:4.4.1-11.2.rhaos4.14.el9"],"introduced":["0"],"last_affected":[],"package":"podman-debuginfo","purl":"pkg:rpm/redhat/podman-debuginfo","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el9","fixed":["3:4.4.1-11.2.rhaos4.14.el9"],"introduced":["0"],"last_affected":[],"package":"podman-debugsource","purl":"pkg:rpm/redhat/podman-debugsource","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el9","fixed":["3:4.4.1-11.2.rhaos4.14.el9"],"introduced":["0"],"last_affected":[],"package":"podman-docker","purl":"pkg:rpm/redhat/podman-docker","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el9","fixed":["3:4.4.1-11.2.rhaos4.14.el9"],"introduced":["0"],"last_affected":[],"package":"podman-gvproxy","purl":"pkg:rpm/redhat/podman-gvproxy","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el9","fixed":["3:4.4.1-11.2.rhaos4.14.el9"],"introduced":["0"],"last_affected":[],"package":"podman-gvproxy-debuginfo","purl":"pkg:rpm/redhat/podman-gvproxy-debuginfo","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el9","fixed":["3:4.4.1-11.2.rhaos4.14.el9"],"introduced":["0"],"last_affected":[],"package":"podman-plugins","purl":"pkg:rpm/redhat/podman-plugins","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el9","fixed":["3:4.4.1-11.2.rhaos4.14.el9"],"introduced":["0"],"last_affected":[],"package":"podman-plugins-debuginfo","purl":"pkg:rpm/redhat/podman-plugins-debuginfo","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el9","fixed":["3:4.4.1-11.2.rhaos4.14.el9"],"introduced":["0"],"last_affected":[],"package":"podman-remote","purl":"pkg:rpm/redhat/podman-remote","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el9","fixed":["3:4.4.1-11.2.rhaos4.14.el9"],"introduced":["0"],"last_affected":[],"package":"podman-remote-debuginfo","purl":"pkg:rpm/redhat/podman-remote-debuginfo","source":"RHSA-2024:0944"},{"ecosystem":"Red Hat:openshift:4.14::el9","fixed":["3:4.4.1-11.2.rhaos4.14.el9"],"introduced":["0"],"last_affected":[],"package":"podman-tests","purl":"pkg:rpm/redhat/podman-tests","source":"RHSA-2024:0944"},{"ecosystem":"SUSE:EL-9:Update:Products:ManagerTools:Update","fixed":["1.20.12-1.3.1"],"introduced":["0"],"last_affected":[],"package":"golang","purl":"pkg:rpm/suse/golang\u0026distro=SUSE:EL-9:Update:Products:ManagerTools:Update","source":"SUSE-SU-2024:4019-1"},{"ecosystem":"SUSE:EL-9:Update:Products:ManagerTools:Update","fixed":["1.0.8-1.14.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-lusitaniae-apache_exporter","purl":"pkg:rpm/suse/golang-github-lusitaniae-apache_exporter\u0026distro=SUSE:EL-9:Update:Products:ManagerTools:Update","source":"SUSE-SU-2024:4019-1"},{"ecosystem":"SUSE:EL-9:Update:Products:ManagerTools:Update","fixed":["0.1.74-1.29.1"],"introduced":["0"],"last_affected":[],"package":"scap-security-guide","purl":"pkg:rpm/suse/scap-security-guide\u0026distro=SUSE:EL-9:Update:Products:ManagerTools:Update","source":"SUSE-SU-2024:4019-1"},{"ecosystem":"SUSE:EL-9:Update:Products:ManagerTools:Update","fixed":["5.0.10-1.41.1"],"introduced":["0"],"last_affected":[],"package":"spacecmd","purl":"pkg:rpm/suse/spacecmd\u0026distro=SUSE:EL-9:Update:Products:ManagerTools:Update","source":"SUSE-SU-2024:4019-1"},{"ecosystem":"SUSE:EL-9:Update:Products:ManagerTools:Update","fixed":["0.1.23-1.11.1"],"introduced":["0"],"last_affected":[],"package":"uyuni-tools","purl":"pkg:rpm/suse/uyuni-tools\u0026distro=SUSE:EL-9:Update:Products:ManagerTools:Update","source":"SUSE-SU-2024:4019-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP5","fixed":["0.16.0-150000.3.21.4"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-promu","purl":"pkg:rpm/suse/golang-github-prometheus-promu\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP5","source":"SUSE-SU-2024:4011-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP6","fixed":["0.16.0-150000.3.21.4"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-promu","purl":"pkg:rpm/suse/golang-github-prometheus-promu\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP6","source":"SUSE-SU-2024:4011-1"},{"ecosystem":"SUSE:Manager Client Tools 12","fixed":["1.0.8-1.24.3"],"introduced":["0"],"last_affected":[],"package":"golang-github-lusitaniae-apache_exporter","purl":"pkg:rpm/suse/golang-github-lusitaniae-apache_exporter\u0026distro=SUSE%20Manager%20Client%20Tools%2012","source":"SUSE-SU-2024:4010-1"},{"ecosystem":"SUSE:Manager Client Tools 12","fixed":["0.16.0-1.21.3"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-promu","purl":"pkg:rpm/suse/golang-github-prometheus-promu\u0026distro=SUSE%20Manager%20Client%20Tools%2012","source":"SUSE-SU-2024:4010-1"},{"ecosystem":"SUSE:Manager Client Tools 12","fixed":["4.3.11-1.53.2"],"introduced":["0"],"last_affected":[],"package":"mgr-daemon","purl":"pkg:rpm/suse/mgr-daemon\u0026distro=SUSE%20Manager%20Client%20Tools%2012","source":"SUSE-SU-2024:4010-1"},{"ecosystem":"SUSE:Manager Client Tools 12","fixed":["5.0.10-38.150.2"],"introduced":["0"],"last_affected":[],"package":"spacecmd","purl":"pkg:rpm/suse/spacecmd\u0026distro=SUSE%20Manager%20Client%20Tools%2012","source":"SUSE-SU-2024:4010-1"},{"ecosystem":"SUSE:Manager Client Tools 12","fixed":["4.3.21-52.104.2"],"introduced":["0"],"last_affected":[],"package":"spacewalk-client-tools","purl":"pkg:rpm/suse/spacewalk-client-tools\u0026distro=SUSE%20Manager%20Client%20Tools%2012","source":"SUSE-SU-2024:4010-1"},{"ecosystem":"SUSE:Manager Client Tools 12","fixed":["5.0.5-1.45.2"],"introduced":["0"],"last_affected":[],"package":"uyuni-common-libs","purl":"pkg:rpm/suse/uyuni-common-libs\u0026distro=SUSE%20Manager%20Client%20Tools%2012","source":"SUSE-SU-2024:4010-1"}],"prev":{"headline":"Inisev Plugins (Various Versions) - Cross-Site Request Forgery on handle_installation function","id":"CVE-2023-3977"},"products":["golang.org/x/net/html"],"published":"2023-08-02","related":[],"sources":[{"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":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-27","vendors":["golang.org/x/net"]},"summary":"Attackers can inject malicious scripts via improperly escaped text nodes in the Go HTML library, leading to cross-site scripting attacks.","url":"https://insights.sbomify.com/CVE-2023-3978/"}