Snapchat / Snapchat/GiGL

Look into upgrading protobuf version

Open
#640 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
85
Forks
19
Avg merge
4d 10h
Merged PRs (30d)
6

Description

> **High severity and reachable issue identified in your code:**
> Line 36 has a vulnerable usage of protobuf, introducing a high severity vulnerability.
>
>
> ℹ️ Why this is reachable
>

>
>
> A reachable issue is a real security risk because your project actually executes the vulnerable code. This issue is reachable because your code uses a certain version of protobuf.
> Affected versions of protobuf are vulnerable to Uncontrolled Recursion. A denial-of-service vulnerability in the Python protobuf library's JSON parser allows deeply nested google.protobuf.Any messages to bypass the configured max_recursion_depth in json_format.ParseDict. Because the internal Any-handling logic does not update the recursion counter, an attacker supplying a JSON payload with repeatedly nested Any messages can exhaust Python's recursion stack (raising RecursionError) instead of a controlled ParseError, potentially crashing or disrupting services that parse untrusted JSON.
>
> References: [GHSA](https://github.com/advisories/GHSA-7gcm-g887-7qv7), [CVE](https://nvd.nist.gov/vuln/detail/CVE-2026-0994)
>
>
>
>
>
> **To resolve this comment:**
> Upgrade this dependency to at least version 5.29.6 at [uv.lock](https://github.com/Snapchat/GiGL/blob/2bac65587d9f86173c1daae04326f18145518439/uv.lock#L2959).
>
>
>
> 💬 Ignore this finding
>

>
>
> To ignore this, reply with:
> - `/fp ` for false positive
> - `/ar ` for acceptable risk
> - `/other ` for all other reasons
>
>
>
>
> You can view more details on this finding in the Semgrep AppSec Platform [here](https://semgrep.dev/orgs/snapchat/supply-chain/findings/792061889).
>
>
>
>

_Originally posted by @semgrep-code-snapchat[bot] in [#638](https://github.com/Snapchat/GiGL/pull/638/changes#r3235824121)_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.