Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/google/cel-go
  4. ›
  5. GHSA-gcjh-h69q-9w9g

GHSA-gcjh-h69q-9w9g: cel-go: JSON Private Fields Exposed via NativeTypes and ParseStructTag

July 24, 2026

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.

References

  • github.com/advisories/GHSA-gcjh-h69q-9w9g
  • github.com/cel-expr/cel-go/security/advisories/GHSA-gcjh-h69q-9w9g

Code Behaviors & Features

Detect and mitigate GHSA-gcjh-h69q-9w9g with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.22.0 before 0.29.0

Fixed versions

  • 0.29.0

Solution

Upgrade to version 0.29.0 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-495: Private Data Structure Returned From A Public Method

Source file

go/github.com/google/cel-go/GHSA-gcjh-h69q-9w9g.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:20 +0000.