Skip to content

security: remediate open Dependabot alerts - #346

Merged
jhamon merged 1 commit into
mainfrom
security/remediate-dependabot-alerts
Aug 13, 2026
Merged

security: remediate open Dependabot alerts#346
jhamon merged 1 commit into
mainfrom
security/remediate-dependabot-alerts

Conversation

@jhamon

@jhamon jhamon commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Remediates the open Dependabot alerts on VSB by bumping vulnerable transitive and dev dependencies to their first patched versions. Changes are confined to pyproject.toml and poetry.lock (regenerated via poetry update). CI already exists (python-package.yml, black.yml) — no CI changes.

Packages fixed

Package From To Severity How
pyasn1 0.6.1 0.6.4 high (x5) transitive, poetry update
urllib3 2.2.3 2.7.0 high/med (x6) transitive
protobuf 5.29.4 5.29.6 high (x2) transitive
msgpack 1.1.0 1.2.1 high transitive
brotli 1.1.0 1.2.0 high transitive
setuptools 75.6.0 84.0.0 high/med (x2) transitive
flask-cors 5.0.0 6.0.5 medium (x3) transitive
jinja2 3.1.4 3.1.6 medium (x3) transitive
werkzeug 3.1.3 3.1.8 medium (x2) transitive
filelock 3.18.0 3.32.2 medium (x2) transitive (constraint ^3.18.0 already allowed)
requests 2.32.3 2.34.2 medium (x2) transitive
idna 3.10 3.18 medium transitive
virtualenv 20.28.0 21.7.4 medium transitive (dev)
pytest 8.3.4 9.1.1 medium dev; constraint ^8.3.3^9.0.3
flask 3.1.0 3.1.3 low transitive
pygments 2.18.0 2.20.0 low transitive

Fixes 34 of 36 open alerts.

Deferred (2)

  • pyarrow — patched at 23.0.1, current constraint ^18.0.0. A 5-major jump not verifiable locally (integration tests need external services). Existing Dependabot PR Bump pyarrow from 18.1.0 to 22.0.0 #340 already tracks pyarrow (18.1.0 → 22.0.0). Left for that PR / a dedicated major bump.
  • black — patched at 26.3.1, currently pinned =24.4.2 and coupled to [tool.black].required-version. Black 26 reformats 3 files under vsb/; reformatting application source is outside security scope and would need separate review. Dev/CI-only tool (ReDoS).

Local verification (Python 3.11.15, Poetry)

  • poetry install — OK
  • poetry check --lock — consistent (only pre-existing poetry 1.x→2.x config deprecation warnings)
  • poetry run pytest tests/unit --timeout=12033 passed
  • poetry run flake8 . --select=E9,F63,F7,F820

Note: the integration test suite (tests/integration) requires a Pinecone API key + Docker (pgvector, opensearch) and was not run locally; it runs in CI on this PR.

Bump vulnerable transitive and dev dependencies to their first patched
versions via `poetry update` (regenerated poetry.lock). Only pyproject.toml
(pytest constraint) and poetry.lock change.

Alerts remediated:
- pyasn1        -> 0.6.4   (high;  GHSA, DoS)        [5 alerts]
- urllib3       -> 2.7.0   (high/med)                [6 alerts]
- protobuf      -> 5.29.6  (high)                    [2 alerts]
- msgpack       -> 1.2.1   (high)
- brotli        -> 1.2.0   (high)
- setuptools    -> 84.0.0  (high/med)                [2 alerts]
- flask-cors    -> 6.0.5   (medium)                  [3 alerts]
- jinja2        -> 3.1.6   (medium)                  [3 alerts]
- werkzeug      -> 3.1.8   (medium)                  [2 alerts]
- filelock      -> 3.32.2  (medium)                  [2 alerts]
- requests      -> 2.34.2  (medium)                  [2 alerts]
- idna          -> 3.18    (medium)
- virtualenv    -> 21.7.4  (medium)
- pytest        -> 9.1.1   (medium)  [dev; constraint ^8.3.3 -> ^9.0.3]
- flask         -> 3.1.3   (low)
- pygments      -> 2.20.0  (low)

Deferred (breaking major bump, not verifiable locally):
- pyarrow: needs 23.0.1 (current ^18.0.0); 5-major jump, existing
  Dependabot PR #340 already tracks pyarrow.
- black: needs 26.3.1 (pinned =24.4.2, coupled to tool.black.required-version);
  black 26 reformats 3 files under vsb/, out of security scope.

Verified locally (Python 3.11.15, poetry): poetry install; poetry check --lock;
poetry run pytest tests/unit (33 passed); flake8 syntax/undefined-name check (0).
Integration tests require Pinecone API key + Docker services and were not run.
@jhamon
jhamon merged commit 780be63 into main Aug 13, 2026
4 of 5 checks passed
@jhamon
jhamon deleted the security/remediate-dependabot-alerts branch August 13, 2026 19:18
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