Skip to content

fix: address all 8 open Dependabot security alerts#184

Merged
bsbodden merged 5 commits intomainfrom
bsb/dependabot-security-fixes
Apr 15, 2026
Merged

fix: address all 8 open Dependabot security alerts#184
bsbodden merged 5 commits intomainfrom
bsb/dependabot-security-fixes

Conversation

@bsbodden
Copy link
Copy Markdown
Contributor

Transitive deps (langchain-core, pygments, requests) are added as explicit lower-bound dev constraints so future resolver runs cannot silently downgrade them back into a vulnerable range.

- black: ^25.1.0 → >=26.3.1 (high: arbitrary file write, alert #19)
- pytest: ^8.4.1 → >=9.0.3 (medium: vulnerable tmpdir handling, alert #27)
- cryptography: >=44.0.1 → >=46.0.7 (low+medium: buffer overflow + DNS
  constraint bypass, alerts #23 and #25; python_version marker preserved)
- langchain-core: pinned >=1.2.28 (high+medium: path traversal + f-string
  injection, alerts #22 and #26; resolved to 1.2.29)
- pygments: pinned >=2.20.0 (low: ReDoS via GUID regex, alert #24)
- requests: pinned >=2.33.0 (medium: insecure temp file reuse, alert #21;
  resolved to 2.33.1)

Transitive deps (langchain-core, pygments, requests) are added as explicit
lower-bound dev constraints so future resolver runs cannot silently downgrade
them back into a vulnerable range.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Poetry dependency set to remediate multiple Dependabot security alerts by bumping direct dev tools and by adding explicit constraints for previously-transitive vulnerable packages, then regenerates poetry.lock with the resolved secure versions.

Changes:

  • Raise minimum versions for black, pytest, and cryptography in dev dependencies.
  • Add explicit dev constraints for langchain-core, pygments, and requests to prevent resolving into vulnerable ranges.
  • Regenerate poetry.lock to reflect the new dependency resolutions.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 4 comments.

File Description
pyproject.toml Updates dev dependency constraints and adds explicit lower-bound constraints for vulnerable transitive deps.
poetry.lock Regenerated lockfile reflecting the upgraded/resolved dependency graph.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pyproject.toml Outdated
Comment thread pyproject.toml Outdated
Comment thread pyproject.toml Outdated
Comment thread pyproject.toml Outdated
bsbodden and others added 2 commits April 15, 2026 09:54
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…aints

- Regenerate poetry.lock which was stale after Copilot's pyproject.toml edits
  (CI was failing with 'pyproject.toml changed significantly since poetry.lock
  was last generated')
- Add upper bounds to transitive security constraints per review feedback:
    langchain-core: >=1.2.28,<2
    pygments:       >=2.20.0,<3
    requests:       >=2.33.1,<3
  This keeps the resolver from silently picking up future major versions while
  still enforcing the security minimums.
@bsbodden bsbodden merged commit da11fe4 into main Apr 15, 2026
16 checks passed
@bsbodden bsbodden deleted the bsb/dependabot-security-fixes branch April 15, 2026 17:31
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.

3 participants