Repository navigation
vendor: go.yaml.in/yaml/v3 v3.0.6 (security) - #7460
Conversation
resolve: hint-class literal merge-key string "<<" so it's quoted on encode full diff: yaml/go-yaml@v3.0.5...v3.0.6 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
docker-agent
left a comment
There was a problem hiding this comment.
Assessment: 🟢 APPROVE
The security fix correctly bumps go.yaml.in/yaml/v3 from v3.0.5 to v3.0.6. The core change — adding t[int('<')] = 'M' in resolve.go — is sound: it registers < as a hint byte so any string beginning with < is looked up in resolveMap during encoding, causing "<<" (the YAML merge key) to be forced into a quoted form and preventing key-injection attacks. Strings like "<html>" that are not in resolveMap resolve to strTag and remain unquoted, so no regression is introduced. Version annotations are consistent across vendor.mod, vendor.sum, and vendor/modules.txt (all v3.0.6).
docker-agent
left a comment
There was a problem hiding this comment.
resolve: hint-class literal merge-key string "<<" so it's quoted on encode
full diff: yaml/go-yaml@v3.0.5...v3.0.6
Release notes (optional)
A picture of a cute animal (not mandatory but encouraged)