[GO-2024-2610] Errors returned from JSON marshaling may break template escaping in html/template
Affected Packages
2
Fixed Packages
2
CVEs
1
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.
Package | Affected Version |
---|---|
pkg:golang/html/template | >= 1.22.0, < 1.21.8 |
pkg:golang/html/template | >= 1.22.0, < 1.22.1 |
Package | Fixed Version |
---|---|
pkg:golang/html/template | = 1.21.8 |
pkg:golang/html/template | = 1.22.1 |
- ID
- GO-2024-2610
- URL
- https://pkg.go.dev/vuln/GO-2024-2610
- Published
-
2024-03-05T21:34:20
(6 months ago) - Modified
-
2024-07-17T19:54:18
(2 months ago) - Other Advisories
-
- ALAS2-2024-2554
- ALPINE:CVE-2024-24785
- ALSA-2024:2562
- ALSA-2024:3259
- ELSA-2024-2562
- ELSA-2024-3259
- FREEBSD:B1B039EC-DBFC-11EE-9165-901B0E9408DC
- GLSA-202408-07
- RHSA-2024:2562
- RHSA-2024:3259
- RLSA-2024:2562
- SUSE-SU-2024:0800-1
- SUSE-SU-2024:0811-1
- SUSE-SU-2024:0812-1
- SUSE-SU-2024:0936-1
- SUSE-SU-2024:3089-1
- USN-6886-1
Type | Package URL | Namespace | Name / Product | Version | Distribution / Platform | Arch | Patch / Fix |
---|---|---|---|---|---|---|---|
Fixed | pkg:golang/html/template | html | template | = 1.21.8 | |||
Affected | pkg:golang/html/template | html | template | >= 1.22.0 < 1.21.8 | |||
Fixed | pkg:golang/html/template | html | template | = 1.22.1 | |||
Affected | pkg:golang/html/template | html | template | >= 1.22.0 < 1.22.1 |
# CVE | Description | CVSS | EPSS | EPSS Trend (30 days) | Affected Products | Weaknesses | Security Advisories | Exploits | PoC | Pubblication Date | Modification Date |
---|---|---|---|---|---|---|---|---|---|---|---|
# CVE | Description | CVSS | EPSS | EPSS Trend (30 days) | Affected Products | Weaknesses | Security Advisories | PoC | Pubblication Date | Modification Date |