Skip to content

fix: address CVEs - #29

Merged
shipperizer merged 1 commit into
mainfrom
fix/cves
Sep 15, 2026
Merged

shipperizer merged 1 commit into
mainfrom
fix/cves

Conversation

@shipperizer

@shipperizer shipperizer commented Sep 15, 2026 •

Copy link
Copy Markdown
Collaborator

Description

This PR ensures that all Python and Go dependencies in rockcraft.yaml are pinned/updated to address reported CVEs:

  • Upgraded Python dependencies in python-deps:
    • aiohttp>=3.14.3 (CVE-2026-69244)
    • cryptography>=50.0.0 (CVE-2026-69247)
    • django>=5.2.16,<6.0 (CVE-2026-53877, CVE-2026-53878, CVE-2026-48588)
    • djangorestframework>=3.17.2 (CVE-2026-73228, CVE-2026-73229)
    • h2>=4.4.1 (CVE-2026-71554)
    • httplib2>=0.32.0 (CVE-2026-59939)
    • idna>=3.15 (CVE-2026-45409)
    • msgpack>=1.2.1 (GHSA-6v7p-g79w-8964)
    • pyasn1>=0.6.4 (CVE-2026-59884, CVE-2026-59885, CVE-2026-59886)
    • PyJWT>=2.13.0 (CVE-2026-32597, CVE-2026-48526)
    • setuptools>=83.0.0 (CVE-2026-59890)
    • sqlparse>=0.6.0 (CVE-2026-54284, CVE-2026-59893, CVE-2026-71491)
    • urllib3>=2.7.0 (CVE-2026-44431, CVE-2026-44432)
  • Updated Go dependencies in go-server:
    • Added go get -u golang.org/x/sys alongside net, text, and crypto (CVE-2026-56852, CVE-2026-56854).

Validation

  • Tested Python environment with Trivy scanner; 0 vulnerabilities detected across all upgraded packages.
  • Confirmed compatibility with Authentik's Python 3.14 runtime.

Trivy Scan Result

Report Summary
┌────────┬────────────┬─────────────────┬─────────┐
│ Target │    Type    │ Vulnerabilities │ Secrets │
├────────┼────────────┼─────────────────┼─────────┤
│ .venv  │ python-pkg │        0        │    -    │
└────────┴────────────┴─────────────────┴─────────┘
Result: Clean (no security findings detected)

Fixes #25, #26

@shipperizer
shipperizer requested a review from a team as a code owner September 15, 2026 11:05
- CVE-2026-69244: aiohttp upgraded to >=3.14.3
- CVE-2026-69247: cryptography upgraded to >=50.0.0
- CVE-2026-59939: httplib2 upgraded to >=0.32.0
- CVE-2026-59884, CVE-2026-59885, CVE-2026-59886: pyasn1 upgraded to >=0.6.4
- CVE-2026-54284, CVE-2026-59893, CVE-2026-71491: sqlparse upgraded to >=0.6.0
- CVE-2026-53877, CVE-2026-53878, CVE-2026-48588: django upgraded to >=5.2.16,<6.0
- CVE-2026-73228, CVE-2026-73229: djangorestframework upgraded to >=3.17.2
- CVE-2026-71554: h2 upgraded to >=4.4.1
- CVE-2026-45409: idna upgraded to >=3.15
- CVE-2026-59890: setuptools upgraded to >=83.0.0
- CVE-2026-56852, CVE-2026-56854: update Go x/ dependencies

Fixes #25, #26
@shipperizer
shipperizer merged commit a37be5f into main Sep 15, 2026
8 checks passed
@shipperizer
shipperizer deleted the fix/cves branch September 15, 2026 12:42
@shipperizer shipperizer mentioned this pull request Sep 18, 2026
shipperizer added a commit that referenced this pull request Sep 18, 2026
## Description
This PR addresses remaining dependencies in `rockcraft.yaml` to ensure
`authentik-server` is fully patched against security findings reported
in #26:

### Changes in this PR
1. **`go-server` part**:
- Added `go get -u github.com/klauspost/compress` to update to
`>=v1.18.7` (addresses `GO-2026-5841`).
- Added `go get -u go.opentelemetry.io/otel` to update to `>=v1.44.0`
(addresses `GO-2026-5158`).
2. **`python-deps` part**:
- Cleaned up `uv pip install` call by combining `--upgrade` and
alphabetizing `PyJWT>=2.13.0` inline with other pinned packages.

### Context on #26 Vulnerabilities
- **Python Dependencies**: The packages reported in #26 (`aiohttp`,
`cryptography`, `httplib2`, `pyasn1`, `sqlparse`) were pinned on `main`
via #29. A new rock build/release will update the published OCI image to
resolve those findings.
- **Go Standard Library**: The 8 Go stdlib vulnerabilities reported in
`/usr/bin/authentik-server` (`CVE-2026-33818`, `CVE-2026-39821`,
`CVE-2026-46600`, `CVE-2026-56853`, `CVE-2026-56858`, `CVE-2026-56859`,
`CVE-2026-56860`, `CVE-2026-56862`) were fixed upstream in Go 1.26.6+.
With `go/1.26/stable` currently providing Go 1.26.7, rebuilding the rock
resolves these CVEs.

## Validation
- **Go binary (`authentik-server`)**: Built with Go 1.26.7 and scanned
with `govulncheck -mode=binary`; 0 vulnerabilities detected.
- **Python venv**: Scanned with Trivy; 0 vulnerabilities detected.

### Govulncheck Result (`authentik-server`)
```text
=== Symbol Results ===

No vulnerabilities found.

Your code is affected by 0 vulnerabilities.
```

### Trivy Scan Result (Python Environment)
```text
Report Summary
┌────────┬────────────┬─────────────────┬─────────┐
│ Target │    Type    │ Vulnerabilities │ Secrets │
├────────┼────────────┼─────────────────┼─────────┤
│ .venv  │ python-pkg │        0        │    -    │
└────────┴────────────┴─────────────────┴─────────┘
Result: Clean (no security findings detected)
```

Fixes #26
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.

Vulnerabilities found for authentik-server:2026.5.3-26.04_19

2 participants