{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2023-39319",
        "ASSIGNER": "security@golang.org",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "The html/template package does not apply the proper rules for handling occurrences of \"<script\", \"<!--\", and \"</script\" within JS literals in <script> contexts. This may cause the template parser to improperly consider script contexts to be terminated early, causing actions to be improperly escaped. This could be leveraged to perform an XSS attack."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "Go standard library",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "html/template",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_name": "0",
                                            "version_value": "1.20.8"
                                        },
                                        {
                                            "version_affected": "<",
                                            "version_name": "1.21.0-0",
                                            "version_value": "1.21.1"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://go.dev/issue/62197",
                "refsource": "MISC",
                "name": "https://go.dev/issue/62197"
            },
            {
                "url": "https://go.dev/cl/526157",
                "refsource": "MISC",
                "name": "https://go.dev/cl/526157"
            },
            {
                "url": "https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ",
                "refsource": "MISC",
                "name": "https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ"
            },
            {
                "url": "https://pkg.go.dev/vuln/GO-2023-2043",
                "refsource": "MISC",
                "name": "https://pkg.go.dev/vuln/GO-2023-2043"
            },
            {
                "url": "https://security.netapp.com/advisory/ntap-20231020-0009/",
                "refsource": "MISC",
                "name": "https://security.netapp.com/advisory/ntap-20231020-0009/"
            },
            {
                "url": "https://security.gentoo.org/glsa/202311-09",
                "refsource": "MISC",
                "name": "https://security.gentoo.org/glsa/202311-09"
            }
        ]
    },
    "credits": [
        {
            "lang": "en",
            "value": "Takeshi Kaneko (GMO Cybersecurity by Ierae, Inc.)"
        }
    ]
}