Skip to content

chore: bump cryptography to 50 in rosetta-api - #11071

Merged
nmattia merged 1 commit into
masterfrom
nm-rosetta-python
Aug 10, 2026
Merged

chore: bump cryptography to 50 in rosetta-api#11071
nmattia merged 1 commit into
masterfrom
nm-rosetta-python

Conversation

@nmattia

@nmattia nmattia commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

The previous version has a vulnerability: https://nvd.nist.gov/vuln/detail/CVE-2026-69248

The changes here close the CVE fully after
#11059 and
#11050.

The previous version has a vulnerability: https://nvd.nist.gov/vuln/detail/CVE-2026-69248

The changes here close the CVE fully after
#11059 and
#11050.
@github-actions github-actions Bot added the chore label Aug 7, 2026
@nmattia
nmattia marked this pull request as ready for review August 7, 2026 13:24
@nmattia
nmattia requested a review from a team as a code owner August 7, 2026 13:24
@nmattia
nmattia enabled auto-merge August 7, 2026 13:24
@github-actions github-actions Bot added the @defi label Aug 7, 2026
@zeropath-ai

zeropath-ai Bot commented Aug 7, 2026

Copy link
Copy Markdown

No security or compliance issues detected. Reviewed everything up to 842fd4f.

Security Overview
Detected Code Changes
Change Type Relevant files
Bug Fix ► rs/rosetta-api/examples/icp/python/requirements.txt
    cryptography==50.0.0 to replace cryptography==48.0.1
► rs/rosetta-api/examples/icrc1/python/requirements.txt
    cryptography==50.0.0 to replace cryptography==48.0.1

@mbjorkqvist mbjorkqvist left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nmattia!

While not directly related to this PR, the examples are currently broken on master and on this branch (so unrelated to the cryptography bump). Bumping the following two dependencies would fix the issue - if you could do it in this PR I would appreciate it, but if not, let's just merge this and look into bumping the others later:

cffi==2.1.1
pycparser==3.0

@nmattia
nmattia added this pull request to the merge queue Aug 10, 2026
Merged via the queue into master with commit 0dc08e1 Aug 10, 2026
72 of 73 checks passed
@nmattia
nmattia deleted the nm-rosetta-python branch August 10, 2026 09:50
pull Bot pushed a commit to mikeyhodl/ic that referenced this pull request Aug 10, 2026
…y#11081)

<!-- ccr-slack-attribution -->
_Requested by **Nicolas Mattia** · [Slack
thread](https://dfinity.slack.com/archives/CL7Q2RXUM/p1786355727370839)_

## What

Bumps two Python dependencies used by the rosetta-api example clients:

| Package | File(s) | Before | After |
|---|---|---|---|
| `cffi` | `rs/rosetta-api/examples/icp/python/requirements.txt`,
`rs/rosetta-api/examples/icrc1/python/requirements.txt` | `1.17.1` |
`2.1.1` |
| `pycparser` | same as above | `2.22` | `3.0` |

## Why

In [dfinity#11071](dfinity#11071) (bumping
`cryptography` to `50.0.0` to close a CVE), @mbjorkqvist noted in
review:

> While not directly related to this PR, the examples are currently
broken on `master` and on this branch (so unrelated to the
`cryptography` bump). Bumping the following two dependencies would fix
the issue - if you could do it in this PR I would appreciate it, but if
not, let's just merge this and look into bumping the others later:
>
> ```
> cffi==2.1.1
> pycparser==3.0
> ```

dfinity#11071 was merged without that follow-up bump ("let's just merge this
and look into bumping the others later"). This PR addresses that
deferred suggestion by bumping `cffi` and `pycparser` to the exact
versions Mathias suggested, which should fix the currently-broken
rosetta-api python examples.


---
_Generated by [Claude
Code](https://claude.ai/code/session_017pV4aVSagxQ5MYVJB4xeeT)_

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants