CVE-2026-44981: Go Yaml Inline Map Strict Bypass

Using `yaml:",inline"` on a map field acts as a catch-all during YAML deserialization. This neutralizes `Strict` mode unmarshaling, allowing configuration files with typos or misspelled properties to fail silently rather than producing errors. If strict validation is required, remove the inline map or perform manual validation of the unmarshaled data.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-44981-go-yaml-inline-map-strict-bypass --engine opengrep

Description

Using `yaml:",inline"` on a map field acts as a catch-all during YAML deserialization. This neutralizes `Strict` mode unmarshaling, allowing configuration files with typos or misspelled properties to fail silently rather than producing errors. If strict validation is required, remove the inline map or perform manual validation of the unmarshaled data.