CVE-2024-24785 - CVE House
Back to Database
Status published Unknown CVE-2024-24785

Errors returned from JSON marshaling may break template escaping in html/template

Vulnerability 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 Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2024-24785

Credits & Attribution

The following person or organization is credited with identifying this vulnerability, as recorded in the NVD database:

  • RyotaK (https://ryotak.net)

Affected Vendor

Go standard library

View all reports →

Affected Software

html/template
Vulnerable Versions:
0, 1.22.0-0

Timeline

Official Publish: March 5th, 2024
Last Modified: March 14th, 2025
Added to House: July 22nd, 2026

CVSS Vectors

No vector data available

Weaknesses (CWE)

No CWE data available

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.