Skip to content

deps: Bump datamodel-code-generator to 0.75.1 - #344

Merged
matthewelwell merged 1 commit into
mainfrom
deps/datamodel-code-generator-security
Aug 28, 2026
Merged

deps: Bump datamodel-code-generator to 0.75.1#344
matthewelwell merged 1 commit into
mainfrom
deps/datamodel-code-generator-security

Conversation

@matthewelwell

Copy link
Copy Markdown
Contributor

Changes

Bumps datamodel-code-generator from 0.33.0 to 0.75.1, clearing eight
Vanta findings that fall due tomorrow (2026-08-29). All eight are HIGH and
all are this one package:

Advisory Fixed in
CVE-2026-55415 0.64.0
CVE-2026-55391 0.63.0
CVE-2026-55389 0.62.0
CVE-2026-54691, CVE-2026-54690 0.61.0
CVE-2026-54653, CVE-2026-54654 0.60.2
CVE-2026-54621 0.60.1

0.64.0 is the highest floor, so any version at or above it clears all eight;
recompiling picked up the current release, 0.75.1.

Regenerated using the command recorded at the top of requirements-dev.txt,
with --upgrade-package datamodel-code-generator added so no other dev pin
moved. The result is a 3-line diff.

Scope of the risk

Worth noting for prioritisation: datamodel-code-generator is a dev-only
tool listed in requirements-dev.in, so it is not part of the published
flagsmith-flag-engine package and never reaches consumers. This is
developer and CI tooling exposure only.

flag_engine/result/types.py and flag_engine/context/types.py carry
# generated by datamodel-codegen headers, but codegen is invoked manually
and is not wired into CI, so their contents are unaffected. Regenerating them
against a codegen 42 minor versions newer would produce unrelated churn and is
deliberately left out of this PR.

How did you test this code?

  • mypy --strict . — success, no issues in 34 source files.
  • pytest — 385 tests pass.
  • Confirmed the installed version resolves to 0.75.1.

Clears eight overdue-tomorrow Vanta findings, all HIGH and all in
datamodel-code-generator 0.33.0:

- CVE-2026-55415 (needs 0.64.0)
- CVE-2026-55391 (needs 0.63.0)
- CVE-2026-55389 (needs 0.62.0)
- CVE-2026-54691, CVE-2026-54690 (need 0.61.0)
- CVE-2026-54653, CVE-2026-54654 (need 0.60.2)
- CVE-2026-54621 (needs 0.60.1)

Regenerated with the command recorded at the top of requirements-dev.txt
plus `--upgrade-package datamodel-code-generator`, so no other dev pin
moved. The tool is dev-only and is not part of the published package.

flag_engine/result/types.py and flag_engine/context/types.py were
generated by this tool, but codegen is invoked manually and is not wired
into CI, so their contents are unaffected by this bump.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@matthewelwell
matthewelwell requested a review from a team as a code owner August 28, 2026 17:30
@matthewelwell
matthewelwell requested review from khvn26 and removed request for a team August 28, 2026 17:30
@github-actions

Copy link
Copy Markdown

File Coverage Missing
All files 100%

Minimum allowed coverage is 100%

Generated by 🐒 cobertura-action against 96e05f9

@codspeed-hq

codspeed-hq Bot commented Aug 28, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 1 untouched benchmark


Comparing deps/datamodel-code-generator-security (96e05f9) with main (cc74d0a)

Open in CodSpeed

@matthewelwell
matthewelwell merged commit 96d60cf into main Aug 28, 2026
9 checks passed
@matthewelwell
matthewelwell deleted the deps/datamodel-code-generator-security branch August 28, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants