Repository navigation
fix(container): patch pyasn1 and joserfc CVEs - #13247
Conversation
- Bump pyasn1 to 0.6.5 in the SDK and API (CVE-2026-119194..119197) - Bump joserfc to 1.7.5 in the SDK and MCP server (CVE-2026-119283)
|
✅ All required changelog fragments are present. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
✅ No Conflicts No conflict markers, and the branch merges cleanly into its base. |
🔒 Container Security ScanImage: ✅ No Vulnerabilities DetectedThe container image passed all security checks. No known CVEs were found.📋 Resources:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #13247 +/- ##
==========================================
- Coverage 93.22% 90.56% -2.67%
==========================================
Files 342 2569 +2227
Lines 47171 126105 +78934
==========================================
+ Hits 43975 114206 +70231
- Misses 3196 11899 +8703 Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the security dependency updates across the SDK, API, and MCP server.
No open issues 🎉
What changed in this PR
Updates vulnerable dependencies across Prowler’s SDK, API, and MCP server to address denial-of-service advisories behind the container scan failures observed on #13246.
Changes:
- Bumps
pyasn1to0.6.5in the SDK and API, andjoserfcto1.7.5in the SDK and MCP server. - Refreshes lockfiles, including SDK/API format revisions and dependency-marker adjustments.
- Adds security changelog fragments for all three components.
| File | Description |
|---|---|
uv.lock |
Locks patched SDK dependencies and refreshes lock metadata. |
pyproject.toml |
Updates SDK constraints for both packages. |
prowler/changelog.d/pyasn1-joserfc-cves.security.md |
Documents the SDK security updates. |
mcp_server/uv.lock |
Locks joserfc to 1.7.5. |
mcp_server/pyproject.toml |
Updates the MCP server’s joserfc constraint. |
mcp_server/changelog.d/joserfc-cve.security.md |
Documents the MCP server security update. |
api/uv.lock |
Locks patched pyasn1 and refreshes lock metadata. |
api/pyproject.toml |
Updates the API’s pyasn1 constraint. |
api/changelog.d/pyasn1-cves.security.md |
Documents the API security update. |
Review effort: Balanced
🔎 Container Security Scan (Grype)Image: ✅ Nothing BlockingNo findings at critical or high severity. Not blocking at this cutoff — medium: 12, low: 2. 📋 Resources:
|
🔒 Container Security ScanImage: ✅ No Vulnerabilities DetectedThe container image passed all security checks. No known CVEs were found.📋 Resources:
|
🔒 Container Security ScanImage: ✅ No Vulnerabilities DetectedThe container image passed all security checks. No known CVEs were found.📋 Resources:
|
🔎 Container Security Scan (Grype)Image: ✅ Nothing BlockingNo findings at critical or high severity. Not blocking at this cutoff — medium: 20, low: 8, negligible: 1. 65 finding(s) excluded by 📋 Resources:
|
🔎 Container Security Scan (Grype)Image: ✅ Nothing BlockingNo findings at critical or high severity. Not blocking at this cutoff — medium: 21, low: 8, negligible: 1. 99 finding(s) excluded by 📋 Resources:
|
- Patch CVE-2026-115557 in the MCP Server runtime image
Context
The
sdk-container-build-and-scanTrivy gate is failing on every PR that builds the SDK image (seen on #13246) with 5 HIGH findings:This PR's own
mcp-container-build-and-scanthen flagged a CRITICAL in the MCP Server base image:Description
Bumps the pins to the fixed versions everywhere they appear:
pyproject.toml,uv.lock): pyasn1 0.6.4 → 0.6.5, joserfc 1.6.8 → 1.7.5api/pyproject.toml,api/uv.lock): pyasn1 0.6.4 → 0.6.5mcp_server/pyproject.toml,mcp_server/uv.lock): joserfc 1.6.8 → 1.7.5mcp_server/Dockerfile): runtime basepython:3.13.16-alpine3.23→python:3.13.18-alpine3.23, digest-pinned like before. The SDK and API images got the same CVE fix in fix(container): bump Python base image to 3.12.16 #13215.Only the SDK image failed the gate on #13246, because the API and MCP image scans only run when those components change. Both pin the same vulnerable versions, so they are patched here too.
Compatibility:
pyasn1-modules0.4.2 acceptspyasn1>=0.6.1,<0.7.0, moto acceptsjoserfc>=0.9.0, and joserfc 1.7.5 still supports Python 3.10. The lockfile diffs change only these two packages.Steps to review
sdk-container-build-and-scan,api-container-build-and-scanandmcp-container-build-and-scanpass with no HIGH findings.uv run pytest tests/providers/aws/services/cognito tests/providers/gcp/gcp_provider_test.py tests/providers/huaweicloud(386 passed) and the MCP suite (251 passed). The MCP image builds locally, runs Python 3.13.18 and importsprowler_mcp_server.Checklist
Community Checklist
SDK/CLI
API
MCP Server
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Summary by CodeRabbit