CVE-2020-29510

go: encoding/xml: XML directives instability

Published Dec 14, 2020 CVSS 3.1 · 9.8 Critical EPSS 2.1% KEV · Not listed
Description
The encoding/xml package in Go versions 1.15 and earlier does not correctly preserve the semantics of directives during tokenization round-trips, which allows an attacker to craft inputs that behave in conflicting ways during different stages of processing in affected downstream applications.

Remediation

Vendor Workaround

Untrusted markup in affected applications can be validated using the github.com/mattermost/xml-roundtrip-validator module.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2020-21877 The encoding/xml package in Go versions 1.15 and earlier does not correctly preserve the semantics of directives during tokenization round-trips, which allows an attacker to craft inputs that behave in conflicting ways during different stages of processing in affected downstream applications.
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
Mattermost
Published
Updated
Sep 16, 2024, 4:48 PM
Reserved
Dec 3, 2020, 12:00 AM
Status
Modified
Published
Dec 14, 2020, 8:15 PM
Modified
Jun 17, 2026, 3:11 AM
Severity
Low
Public date
Dec 14, 2020, 12:00 AM