Skip to content

fix: backport CVE-2026-132092 fix from Django 5.2 - #12153

Merged
jennifer-richards merged 1 commit into
ietf-tools:mainfrom
rjsparks:django-cve-2026-132092
Dec 3, 2026
Merged

jennifer-richards merged 1 commit into
ietf-tools:mainfrom
rjsparks:django-cve-2026-132092

Conversation

@rjsparks

@rjsparks rjsparks commented Dec 3, 2026

Copy link
Copy Markdown
Member

CVE-2026-132092: Potential SQL injection in range and in lookups

Patch from django/django@5a8963c

Django 4.2.30 has the same code in Range.get_rhs_op and FieldGetDbPrepValueIterableMixin.batch_process_rhs. A range lookup with more than two values now raises ValueError instead of compiling, and the In lookup no longer allows a mismatch between SQL placeholders and parameters.

Verified that Django's new tests fail on 4.2.30 and pass after patching.

CVE-2026-132092: Potential SQL injection in range and in lookups

Patch from django/django@5a8963c

Django 4.2.30 has the same code in Range.get_rhs_op and
FieldGetDbPrepValueIterableMixin.batch_process_rhs. A range lookup with
more than two values now raises ValueError instead of compiling, and
the In lookup no longer allows a mismatch between SQL placeholders and
parameters.

Verified that Django's new tests fail on 4.2.30 and pass after patching.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Dec 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.40%. Comparing base (e4103bc) to head (695249e).
⚠️ Report is 19 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12153      +/-   ##
==========================================
- Coverage   89.45%   89.40%   -0.05%     
==========================================
  Files         343      343              
  Lines       47044    46557     -487     
==========================================
- Hits        42083    41626     -457     
+ Misses       4961     4931      -30     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jennifer-richards
jennifer-richards merged commit bbe3429 into ietf-tools:main Dec 3, 2026
9 checks passed
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