{"id":"DHI-ezbw-z7if-6c5t-d5vg","aliases":[],"title":"The function `ext.NativeTypes(ParseStructTag(\"json\"))` does not honour the `encoding/json` skip directive `json:\"-\"`…","originalDescription":"The function `ext.NativeTypes(ParseStructTag(\"json\"))` does not honour the `encoding/json` skip directive `json:\"-\"`. Fields tagged `json:\"-\"` are registered in the CEL type system under the literal name `\"-\"` and are readable from any user-submitted CEL expression via `dyn(obj)[\"-\"]`. Additionally, `newNativeTypes` silently registers every nested struct reachable from the type passed to `NativeTypes`, including types from third-party dependencies the developer never examined. ## Root cause In `fieldNameByTag`, the helper used by `ParseStructTag(\"json\")` to translate Go struct tags into CEL field names. See at `ext/native.go:146`: ```go func fieldNameByTag(structTagToParse string) func(field reflect.StructField) string { return func(field reflect.StructField) string { tag, found := field.Tag.Lookup(structTagToParse) if found { splits := strings.Split(tag, \",\") if len(splits) > 0 { // We make the assumption that the leftmost entry in the tag is the name. // This seems to be true for most tags that have the concept of a name/key, such as: // https://pkg.go.dev/encoding/xml#Marshal // https://pkg.go.dev/encoding/json#Marshal // https://pkg.go.dev/go.mongodb.org/mongo-driver/bson#hdr-S","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[],"references":[{"url":"https://scout.docker.com/v/DHI-ezbw-z7if-6c5t-d5vg","type":"advisory"},{"url":"https://github.com/advisories/GHSA-gcjh-h69q-9w9g","type":"advisory"},{"url":"https://github.com/cel-expr/cel-go/security/advisories/GHSA-gcjh-h69q-9w9g","type":"advisory"},{"url":"https://pkg.go.dev/vuln/GO-2026-6094","type":"advisory"}],"sources":[{"name":"osv","at":"2026-12-03T17:03:00.388Z","url":"https://osv.dev/vulnerability/DHI-ezbw-z7if-6c5t-d5vg","license":"CC-BY 4.0","firstSeenAt":"2026-11-20T01:01:51.141Z"}],"firstSeenAt":"2026-11-20T01:01:51.141Z","publishedAt":"2026-11-20T00:34:46.000Z","modifiedAt":"2026-12-03T16:00:17.027Z"}