CVE-2023-39318

    Dashboard / Vulnerabilities / CVE-2023-39318

    CVE-2023-39318

    Published: 8 Sept 2023Last Modified: 12 Aug 2026

    Summary: Improper handling of HTML-like comments in script contexts in html/template

    Details: The html/template package does not properly handle HTML-like "" comment tokens, nor hashbang "#!" comment tokens, in <script> contexts. This may cause the template parser to improperly interpret the contents of <script> contexts, causing actions to be improperly escaped. This may 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-39318 | CVE-DB