Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. golang.org/x/net
  4. ›
  5. CVE-2023-3978

CVE-2023-3978: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

August 2, 2023 (updated October 11, 2023)

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.

References

  • github.com/advisories/GHSA-2wrh-6pvc-2jm9
  • go.dev/cl/514896
  • go.dev/issue/61615
  • nvd.nist.gov/vuln/detail/CVE-2023-3978
  • pkg.go.dev/vuln/GO-2023-1988

Code Behaviors & Features

Detect and mitigate CVE-2023-3978 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.13.0

Fixed versions

  • 0.13.0

Solution

Upgrade to version 0.13.0 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

go/golang.org/x/net/CVE-2023-3978.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:07 +0000.