all: use case-sensitive JSON unmarshaling (#807)
As reported in https://github.com/modelcontextprotocol/go-sdk/issues/805, case insensitive unmarshaling can pose security issues. This change adjusts all non-test and non-example unmarshaling to use a case sensitive mode. This introduces a new external dependency `github.com/segmentio/encoding`.
This commit is contained in:
parent
6b75899fd7
commit
6e8ca568e4
1 changed files with 127 additions and 20 deletions
6
go.mod
6
go.mod
|
|
@ -6,7 +6,13 @@ require (
|
|||
github.com/golang-jwt/jwt/v5 v5.2.2
|
||||
github.com/google/go-cmp v0.7.0
|
||||
github.com/google/jsonschema-go v0.4.2
|
||||
github.com/segmentio/encoding v0.5.3
|
||||
github.com/yosida95/uritemplate/v3 v3.0.2
|
||||
golang.org/x/oauth2 v0.30.0
|
||||
golang.org/x/tools v0.34.0
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/segmentio/asm v1.1.3 // indirect
|
||||
golang.org/x/sys v0.35.0 // indirect
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue