8000 Fix 54 High/Critical CVEs: upgrade certifi, cryptography, django and 9 more by liorgol · Pull Request #8 · liorgol/linkding · GitHub
[go: up one dir, main page]

Skip to content

Fix 54 High/Critical CVEs: upgrade certifi, cryptography, django and 9 more - #8

Open
liorgol wants to merge 1 commit into
cve-remediator/base-2025-08from
cve-remediator/20261121-4d3f97be
Open

liorgol wants to merge 1 commit into
cve-remediator/base-2025-08from
cve-remediator/20261121-4d3f97be

Conversation

@liorgol
@liorgol liorgol commented Nov 21, 2026
Copy link
Copy Markdown
Owner

This PR fixes 54 High/Critical findings by upgrading 10 pinned Python dependencies and moving to a newer build of the same base image and applying security updates to packages the image ships. The image was rebuilt, the repository's own tests were run unchanged, and the image was rescanned with Trivy.

Validation

Check Result
Image builds ✅ pass
No owner test got worse (tests unchanged) ✅ pass (926 tests)
Targeted CVEs gone on rescan ✅ pass
No new or worsened High/Critical ✅ pass

Trivy findings before and after

Severity Before After Change
CRITICAL 8 4 -4
HIGH 301 251 -50
MEDIUM 1084 1023 -61
LOW 449 423 -26
UNKNOWN 72 67 -5
Total 1914 1768 -146

Changes

Package From To File
certifi 2024.8.30 2026.10.18 requirements.txt line 15
cryptography 43.0.1 50.0.0 requirements.txt line 25
django 5.2.3 5.2.17 requirements.txt line 30
djangorestframework 3.15.2 3.18.2 requirements.txt line 40
pyopenssl 24.2.1 26.4.0 requirements.txt line 56
soupsieve 2.6 3.0.2 requirements.txt line 69
sqlparse 0.5.1 0.6.0 requirements.txt line 71
urllib3 2.5.0 2.8.0 requirements.txt line 75
cffi 1.17.1 2.0.0 requirements.txt line 17
josepy 1.14.0 2.0.0 requirements.txt line 46
base image python:3.12.9-slim-bookworm python:3.12.16-slim-bookworm docker/default.Dockerfile line 54
Debian security updates installed apt, gpgv, libapt-pkg6.0, libcap2, libgnutls30, libgssapi-krb5-2, libk5crypto3, libkrb5-3, libkrb5support0, libpcre2-8-0, libsqlite3-0 docker/default.Dockerfile (end of shipped stage)
setuptools (shipped in the image) installed latest docker/default.Dockerfile (end of shipped stage)

The base image moves only to a newer build of the same Python minor version and Debian release; OS findings it removes are listed as fixed.

Upgrades left out

Upgrading beautifulsoup4 broke tests that passed before, and automatic repair did not fix it. This PR ships the remaining upgrades, which pass on their own; the findings those upgrades would fix are listed under Not fixed and need a manual migration.

Upgrades kept below a breaking version

The newest fix levels broke tests that passed before, and automatic repair did not fix it, so this PR keeps soupsieve below 4. That fixes what the older releases can; the findings that need the newer version are listed under Not fixed and need a manual migration.

Fixed by this PR

CVE Package Severity Fixed by
CVE-2025-64459 Django 5.2.3 CRITICAL django 5.2.3 → 5.2.17
GHSA-6q48-6c7w-9gw2 certifi 2024.8.30 CRITICAL certifi 2024.8.30 → 2026.10.18
CVE-2026-33845 libgnutls30 3.7.9-2+deb12u4 CRITICAL base image refresh / image security updates
CVE-2026-42010 libgnutls30 3.7.9-2+deb12u4 CRITICAL base image refresh / image security updates
CVE-2025-57833 Django 5.2.3 HIGH django 5.2.3 → 5.2.17
CVE-2025-59681 Django 5.2.3 HIGH django 5.2.3 → 5.2.17
CVE-2025-64458 Django 5.2.3 HIGH django 5.2.3 → 5.2.17
CVE-2026-1207 Django 5.2.3 HIGH django 5.2.3 → 5.2.17
CVE-2026-1287 Django 5.2.3 HIGH django 5.2.3 → 5.2.17
CVE-2026-15307 Django 5.2.3 HIGH django 5.2.3 → 5.2.17
CVE-2026-25673 Django 5.2.3 HIGH django 5.2.3 → 5.2.17
CVE-2026-33034 Django 5.2.3 HIGH django 5.2.3 → 5.2.17
CVE-2026-3902 Django 5.2.3 HIGH django 5.2.3 → 5.2.17
CVE-2026-109518 apt 2.6.1 HIGH base image refresh / image security updates
CVE-2026-26007 cryptography 43.0.1 HIGH cryptography 43.0.1 → 50.0.0
CVE-2026-69249 cryptography 43.0.1 HIGH cryptography 43.0.1 → 50.0.0
GHSA-537c-gmf6-5ccf cryptography 43.0.1 HIGH cryptography 43.0.1 → 50.0.0
CVE-2026-114136 djangorestframework 3.15.2 HIGH djangorestframework 3.15.2 → 3.18.2
CVE-2026-114137 djangorestframework 3.15.2 HIGH djangorestframework 3.15.2 → 3.18.2
CVE-2026-114138 djangorestframework 3.15.2 HIGH djangorestframework 3.15.2 → 3.18.2
CVE-2025-68973 gpgv 2.2.40-1.1 HIGH base image refresh / image security updates
CVE-2026-109518 libapt-pkg6.0 2.6.1 HIGH base image refresh / image security updates
CVE-2026-4878 libcap2 1:2.66-4 HIGH base image refresh / image security updates
CVE-2025-32988 libgnutls30 3.7.9-2+deb12u4 HIGH base image refresh / image security updates
CVE-2025-32990 libgnutls30 3.7.9-2+deb12u4 HIGH base image refresh / image security updates
CVE-2026-33846 libgnutls30 3.7.9-2+deb12u4 HIGH base image refresh / image security updates
CVE-2026-3833 libgnutls30 3.7.9-2+deb12u4 HIGH base image refresh / image security updates
CVE-2026-42009 libgnutls30 3.7.9-2+deb12u4 HIGH base image refresh / image security updates
CVE-2026-40355 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH base image refresh / image security updates
CVE-2026-40356 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH base image refresh / image security updates
CVE-2026-40355 libk5crypto3 1.20.1-2+deb12u2 HIGH base image refresh / image security updates
CVE-2026-40356 libk5crypto3 1.20.1-2+deb12u2 HIGH base image refresh / image security updates
CVE-2026-40355 libkrb5-3 1.20.1-2+deb12u2 HIGH base image refresh / image security updates
CVE-2026-40356 libkrb5-3 1.20.1-2+deb12u2 HIGH base image refresh / image security updates
CVE-2026-40355 libkrb5support0 1.20.1-2+deb12u2 HIGH base image refresh / image security updates
CVE-2026-40356 libkrb5support0 1.20.1-2+deb12u2 HIGH base image refresh / image security updates
CVE-2026-103111 libpcre2-8-0 10.42-1 HIGH base image refresh / image security updates
CVE-2026-86145 libpcre2-8-0 10.42-1 HIGH base image refresh / image security updates
CVE-2026-89157 libpcre2-8-0 10.42-1 HIGH base image refresh / image security updates
CVE-2026-89161 libpcre2-8-0 10.42-1 HIGH base image refresh / image security updates
CVE-2025-6965 libsqlite3-0 3.40.1-2+deb12u1 HIGH base image refresh / image security updates
CVE-2026-27459 pyOpenSSL 24.2.1 HIGH pyopenssl 24.2.1 → 26.4.0
CVE-2026-126191 soupsieve 2.6 HIGH soupsieve 2.6 → 3.0.2
CVE-2026-49476 soupsieve 2.6 HIGH soupsieve 2.6 → 3.0.2
CVE-2026-49477 soupsieve 2.6 HIGH soupsieve 2.6 → 3.0.2
CVE-2026-54284 sqlparse 0.5.1 HIGH sqlparse 0.5.1 → 0.6.0
CVE-2026-59893 sqlparse 0.5.1 HIGH sqlparse 0.5.1 → 0.6.0
CVE-2026-71491 sqlparse 0.5.1 HIGH sqlparse 0.5.1 → 0.6.0
CVE-2025-66418 urllib3 2.5.0 HIGH urllib3 2.5.0 → 2.8.0
CVE-2025-66471 urllib3 2.5.0 HIGH urllib3 2.5.0 → 2.8.0
CVE-2026-21441 urllib3 2.5.0 HIGH urllib3 2.5.0 → 2.8.0
CVE-2026-44431 urllib3 2.5.0 HIGH urllib3 2.5.0 → 2.8.0
CVE-2026-97687 urllib3 2.5.0 HIGH urllib3 2.5.0 → 2.8.0
CVE-2026-97689 urllib3 2.5.0 HIGH urllib3 2.5.0 → 2.8.0

The same upgrades also removed 92 lower-severity finding(s).

Finding status (Critical/High)

Status Count
Fixed by this PR 54
Vendor-dependent: no fix from Debian yet 253
Proposed false positive: needs your approval 0
Open: fix exists in Debian, needs a newer base image 0
Open: other (reasons below) 2

Not fixed by this PR

CVE Package Severity Fix available Reason
CVE-2025-47273 setuptools 70.3.0 HIGH 78.1.1 target provenance is not confirmed
CVE-2026-126190 soupsieve 2.6 HIGH 4.0.0 the fix needs soupsieve 4.0.0, and soupsieve 4 or newer breaks the application's tests; needs a manual migration

253 High/Critical findings are in OS (Debian) packages from the base image. This version of the tool reports them but does not change OS packages.

Waiting on Debian (vendor-dependent, no fix released yet): 246
CVE Package Severity Debian status
CVE-2023-6879 libaom3 3.6.0-1+deb12u3 CRITICAL affected
CVE-2025-7458 libsqlite3-0 3.40.1-2+deb12u1 CRITICAL affected
CVE-2026-99362 linux-libc-dev 6.1.192-2 CRITICAL affected
CVE-2026-53613 bsdutils 1:2.38.1-5+deb12u3 HIGH affected
CVE-2026-53615 bsdutils 1:2.38.1-5+deb12u3 HIGH affected
CVE-2026-78410 bsdutils 1:2.38.1-5+deb12u3 HIGH affected
CVE-2026-12064 curl 7.88.1-10+deb12u15 HIGH fix_deferred
CVE-2026-6276 curl 7.88.1-10+deb12u15 HIGH affected
CVE-2026-8286 curl 7.88.1-10+deb12u15 HIGH fix_deferred
CVE-2026-8458 curl 7.88.1-10+deb12u15 HIGH fix_deferred
CVE-2026-8927 curl 7.88.1-10+deb12u15 HIGH fix_deferred
CVE-2026-41992 gzip 1.12-1 HIGH fix_deferred
CVE-2026-54369 libacl1 2.3.1-3 HIGH fix_deferred
CVE-2026-53613 libblkid1 2.38.1-5+deb12u3 HIGH affected
CVE-2026-53615 libblkid1 2.38.1-5+deb12u3 HIGH affected
CVE-2026-78410 libblkid1 2.38.1-5+deb12u3 HIGH affected
CVE-2026-12064 libcurl4 7.88.1-10+deb12u15 HIGH fix_deferred
CVE-2026-6276 libcurl4 7.88.1-10+deb12u15 HIGH affected
CVE-2026-8286 libcurl4 7.88.1-10+deb12u15 HIGH fix_deferred
CVE-2026-8458 libcurl4 7.88.1-10+deb12u15 HIGH fix_deferred
CVE-2026-8927 libcurl4 7.88.1-10+deb12u15 HIGH fix_deferred
CVE-2026-113351 libexpat1 2.5.0-1+deb12u5 HIGH fix_deferred
CVE-2026-115506 libexpat1 2.5.0-1+deb12u5 HIGH fix_deferred
CVE-2026-117610 libexpat1 2.5.0-1+deb12u5 HIGH affected
CVE-2026-118370 libexpat1 2.5.0-1+deb12u5 HIGH affected
CVE-2026-107364 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112315 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112316 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112317 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112318 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112319 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112320 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112321 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112322 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112323 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-118380 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-119079 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-71199 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-71200 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2025-68431 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-120208 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-32740 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-32741 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-32882 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-41071 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-47178 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-50142 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-62289 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-62292 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-84384 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-84444 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-84446 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-84447 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-84450 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-84451 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-107364 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112315 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112316 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112317 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112318 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112319 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112320 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112321 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112322 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112323 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-118380 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-119079 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-71199 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-71200 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-107364 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112315 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112316 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112317 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112318 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112319 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112320 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112321 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112322 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112323 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-118380 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-119079 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-71199 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-71200 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-107364 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112315 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112316 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112317 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112318 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112319 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112320 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112321 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112322 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112323 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-118380 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-119079 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-71199 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-71200 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2023-2953 libldap-2.5-0 2.5.13+dfsg-5 HIGH affected
CVE-2023-2953 libldap-common 2.5.13+dfsg-5 HIGH affected
CVE-2026-53613 libmount1 2.38.1-5+deb12u3 HIGH affected
CVE-2026-53615 libmount1 2.38.1-5+deb12u3 HIGH affected
CVE-2026-78410 libmount1 2.38.1-5+deb12u3 HIGH affected
CVE-2025-69720 libncursesw6 6.4-4 HIGH affected
CVE-2025-6020 libpam-modules 1.5.2-6+deb12u1 HIGH affected
CVE-2025-6020 libpam-modules-bin 1.5.2-6+deb12u1 HIGH affected
CVE-2025-6020 libpam-runtime 1.5.2-6+deb12u1 HIGH affected
CVE-2025-6020 libpam0g 1.5.2-6+deb12u1 HIGH affected
CVE-2026-9538 libperl5.36 5.36.0-7+deb12u4 HIGH fix_deferred
CVE-2026-53613 libsmartcols1 2.38.1-5+deb12u3 HIGH affected
CVE-2026-53615 libsmartcols1 2.38.1-5+deb12u3 HIGH affected
CVE-2026-78410 libsmartcols1 2.38.1-5+deb12u3 HIGH affected
CVE-2026-11822 libsqlite3-0 3.40.1-2+deb12u1 HIGH fix_deferred
CVE-2026-11824 libsqlite3-0 3.40.1-2+deb12u1 HIGH fix_deferred
CVE-2026-119373 libsqlite3-0 3.40.1-2+deb12u1 HIGH affected
CVE-2026-119374 libsqlite3-0 3.40.1-2+deb12u1 HIGH affected
CVE-2026-119379 libsqlite3-0 3.40.1-2+deb12u1 HIGH affected
CVE-2026-16742 libsystemd0 252.36-1~deb12u1 HIGH fix_deferred
CVE-2026-12912 libtiff6 4.5.0-6+deb12u4 HIGH affected
CVE-2026-36849 libtiff6 4.5.0-6+deb12u4 HIGH fix_deferred
CVE-2026-52490 libtiff6 4.5.0-6+deb12u4 HIGH affected

…and 126 more.

Debian will not fix (vendor-dependent, marked minor): 7
CVE Package Severity Debian status
CVE-2023-45853 zlib1g 1:1.2.13.dfsg-1 CRITICAL will_not_fix
CVE-2023-39616 libaom3 3.6.0-1+deb12u3 HIGH will_not_fix
CVE-2023-52355 libtiff6 4.5.0-6+deb12u4 HIGH will_not_fix
CVE-2013-7445 linux-libc-dev 6.1.192-2 HIGH will_not_fix
CVE-2026-31568 linux-libc-dev 6.1.192-2 HIGH will_not_fix
CVE-2026-46219 linux-libc-dev 6.1.192-2 HIGH will_not_fix
CVE-2026-46293 linux-libc-dev 6.1.192-2 HIGH will_not_fix

Generated by CVE Remediator · run 4d3f97be271d4c099f0f9c41d63a0de3. Review before merging; nothing is merged automatically.

…9 more

Validated by CVE Remediator run 4d3f97be271d4c099f0f9c41d63a0de3: image rebuilt, owner tests passed unchanged, targeted CVEs gone on Trivy rescan, no new High/Critical.
liorgol commented Nov 21, 2026
Copy link
Copy Markdown
Owner Author

On the setuptools 70.3.0 finding (CVE-2025-47273): the image installs setuptools 84.2.1. The 70.3.0 entry comes from pip's own SBOM (pip/_vendor/bom.cdx.json), which lists setuptools because pip vendors its pkg_resources module only. The affected setuptools code is not in the image, and no pip release removes the entry. Proposed false positive: it needs your approval and is not applied automatically.


Generated by Claude Code

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.

1 participant

0