CVE-2023-39319

    Dashboard / Vulnerabilities / CVE-2023-39319

    CVE-2023-39319

    Published: 8 Sept 2023Last Modified: 12 Aug 2026

    Summary: Improper handling of special tags within script contexts in html/template

    Details: 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.

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: GIT

    Events:

    Affected versions

    go1.20.7
    go1.20.6
    go1.20.5
    go1.20.4
    go1.20.3
    go1.20.2
    go1.20.1
    go1.20

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    CVE-2023-39319 | CVE-DB