SecurityContext

CVE-2024-24785: MarshalJSON - Stored XSS

  • Cve: CVE-2024-24785
  • Name: MarshalJSON - Stored XSS
  • Description: If errors returned from MarshalJSON methods contain user controlled data, they may be used to break the contextual auto-escaping behavior of the html/template package, allowing for subsequent actions to inject unexpected content into templates.
  • Impact: Attackers can inject malicious content into templates, leading to cross-site scripting (XSS) or other injection attacks.
  • Remediation: Ensure error messages do not include user-controlled data or properly escape such data before returning errors.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: User-controlled data is included in MarshalJSON error messages
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
  • Epss score: 0.00789
  • Epss percentile: 0.56985
  • Assignee: [email protected]
  • Published at: 2024-03-05T23:15:07Z
  • Age in days: 994
  • Modified at: 2026-06-17T07:14:51Z
  • Patch available: yes
  • References total: 6
  • Products total: 1
  • Oss: yes
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-24785
  • Nvd status: deferred
  • Checked, none or zero: cwe, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, projects total, projects, rejected by nvd
  • Not known: hackerone

References

Same in every row:

  • Source: nvd
  • Tags:
Url
http://www.openwall.com/lists/oss-security/2024/03/08/4
https://go.dev/cl/564196
https://go.dev/issue/65697
https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg
https://pkg.go.dev/vuln/GO-2024-2610
https://security.netapp.com/advisory/ntap-20240329-0008/

Products

ProductAffectedPlatform boundSourcesUrl
golang:go>= 1.22.0-0, < 1.22.1; < 1.21.8nocna_alias/v1/products/golang/go

Index

  • Packages: 1
  • Checked, none or zero: repositories, repositories high signal

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 1852470
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports