Skip to content

build(pip): update dependency pytest to v9.0.3 [security] - #528

Merged
1 commit merged into
devfrom
renovate/pypi-pytest-vulnerability
Jun 8, 2026
Merged

1 commit merged into
devfrom
renovate/pypi-pytest-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Apr 29, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
pytest (changelog) 9.0.2 → 9.0.3 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


pytest has vulnerable tmpdir handling

CVE-2025-71176 / GHSA-6w46-j5rx-g56g

More information

Details

pytest through 9.0.2 on UNIX relies on directories with the /tmp/pytest-of-{user} name pattern, which allows local users to cause a denial of service or possibly gain privileges.

Severity

  • CVSS Score: 6.8 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

pytest-dev/pytest (pytest)

v9.0.3

Compare Source

pytest 9.0.3 (2026-04-07)

Bug fixes

  • #​12444: Fixed pytest.approx which now correctly takes into account ~collections.abc.Mapping keys order to compare them.

  • #​13634: Blocking a conftest.py file using the -p no: option is now explicitly disallowed.

    Previously this resulted in an internal assertion failure during plugin loading.

    Pytest now raises a clear UsageError explaining that conftest files are not plugins and cannot be disabled via -p.

  • #​13734: Fixed crash when a test raises an exceptiongroup with __tracebackhide__ = True.

  • #​14195: Fixed an issue where non-string messages passed to unittest.TestCase.subTest() were not printed.

  • #​14343: Fixed use of insecure temporary directory (CVE-2025-71176).

Improved documentation

  • #​13388: Clarified documentation for -p vs PYTEST_PLUGINS plugin loading and fixed an incorrect -p example.
  • #​13731: Clarified that capture fixtures (e.g. capsys and capfd) take precedence over the -s / --capture=no command-line options in Accessing captured output from a test function <accessing-captured-output>.
  • #​14088: Clarified that the default pytest_collection hook sets session.items before it calls pytest_collection_finish, not after.
  • #​14255: TOML integer log levels must be quoted: Updating reference documentation.

Contributor-facing changes

  • #​12689: The test reports are now published to Codecov from GitHub Actions.
    The test statistics is visible on the web interface.

    -- by aleguy02


Configuration

📅 Schedule: (in timezone Etc/UTC)

  • Branch creation
    • ""
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate

renovate Bot commented Apr 29, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: uv.lock
Command failed: uv lock --upgrade-package pytest
error: Failed to parse: `pyproject.toml`
  Caused by: TOML parse error at line 2, column 8
  |
2 | name = "{{SHORT_NAME}}"
  |        ^^^^^^^^^^^^^^^^
Not a valid package or extra name: "{{SHORT_NAME}}". Names must start and end with a letter or digit and may only contain -, _, ., and alphanumeric characters.

@c-vigo

c-vigo commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

@renovatebot rebase

@c-vigo c-vigo closed this pull request by merging all changes into dev in 2c527b8 Jun 8, 2026
@c-vigo
c-vigo deleted the renovate/pypi-pytest-vulnerability branch June 8, 2026 11:42
@c-vigo

c-vigo commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Superseded by #552.

c-vigo added a commit that referenced this pull request Jun 9, 2026
## Description

Remediate Dependabot/Trivy advisories for vulnerable Python dependencies
in this repo and the workspace template seeded to consumer repos
(including smoke-test).

This repo bumps `urllib3`, `requests`, `idna`, and `Pygments` in
`uv.lock`. The workspace template adds `[tool.uv]
constraint-dependencies` floors for the jupyter stack (`notebook`,
`jupyterlab`, `jupyter-server`, `mistune`) so downstream `uv.lock` files
resolve patched versions on release re-sync.

`pytest` (GHSA-6w46-j5rx-g56g) is already at 9.0.3 via #528 — no action;
its stale alert should auto-close.

## Type of Change

- [ ] `feat` -- New feature
- [ ] `fix` -- Bug fix
- [ ] `docs` -- Documentation only
- [x] `chore` -- Maintenance task (deps, config, etc.)
- [ ] `refactor` -- Code restructuring (no behavior change)
- [ ] `test` -- Adding or updating tests
- [ ] `ci` -- CI/CD pipeline changes
- [ ] `build` -- Build system or dependency changes
- [ ] `revert` -- Reverts a previous commit
- [ ] `style` -- Code style (formatting, whitespace)

### Modifiers

- [ ] Breaking change (`!`) -- This change breaks backward compatibility

## Changes Made

- `pyproject.toml` — raise `urllib3` constraint floor to `>=2.7.0`
- `uv.lock` — bump `urllib3` 2.7.0, `requests` 2.34.2, `idna` 3.18,
`pygments` 2.20.0
- `assets/workspace/pyproject.toml` — add jupyter-stack
`constraint-dependencies` (`notebook>=7.5.6`, `jupyterlab>=4.5.7`,
`jupyter-server>=2.18.0`, `mistune>=3.2.1`)
- `CHANGELOG.md` and synced
`assets/workspace/.devcontainer/CHANGELOG.md` — Security entry for #563

## Changelog Entry

### Security

- **Update vulnerable Python dependencies**
([#563](#563))
- Bump `urllib3` 2.7.0, `requests` 2.34.2, `idna` 3.18, `Pygments`
2.20.0 in the repo lockfile
- Constrain workspace-template jupyter stack to patched versions
(`notebook` 7.5.6, `jupyterlab` 4.5.7, `jupyter-server` 2.18.0,
`mistune` 3.2.1)

## Testing

- [ ] Tests pass locally (`just test`)
- [ ] Manual testing performed (describe below)

### Manual Testing Details

N/A — edit-only per plan; verification deferred to CI/nightly Trivy scan
after merge.

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have updated the documentation accordingly (edit
`docs/templates/`, then run `just docs`)
- [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and
pasted the entry above)
- [ ] My changes generate no new warnings or errors
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published

## Additional Notes

Downstream consumer `uv.lock` files (e.g. smoke-test) regenerate
automatically via release dispatch (`init-workspace.sh --smoke-test` +
`just sync`). No manual downstream lockfile step required.

Refs: #563
vig-os-release-app Bot added a commit to vig-os/devkit-smoke-test that referenced this pull request Jun 10, 2026
# Release 0.3.5

This PR prepares release 0.3.5 for merge to main.

## [0.3.5] - TBD

### Changed

- **Consolidate Renovate dependency updates**
([#550](vig-os/devkit#550))
- Python 3.12 → 3.14.5 (`Containerfile`, `requires-python`, and
lockfile)
  - CI runners `ubuntu-22.04` → `24.04` and Node.js 22 → 24
- GitHub Actions major bumps: `setup-node` v6, `setup-uv` v8,
`github-script` v9
- SHA-pinned digest updates for checkout, codeql,
create-github-app-token, and taiki-e/install-action
- Pin Python, npm, and workspace template dependencies to exact versions
([#530](vig-os/devkit#530))
- `@devcontainers/cli` 0.87.0
([#538](vig-os/devkit#538))

- **Bump expected tool versions in image tests**
- `gh` 2.92 → 2.93, `just` 1.50 → 1.52, `cargo-binstall` 1.18 → 1.20 to
match latest upstream releases

- **Consolidate Renovate dependency updates (553–556)**
([#553](vig-os/devkit#553),
[#554](vig-os/devkit#554),
[#555](vig-os/devkit#555),
[#556](vig-os/devkit#556))
  - Pin `pytest` to 9.0.3, bump `pytest-cov` to 7.1.0, `rich` to 15.0.0
- Bump `github-backup` to 0.62.1, `pre-commit` to 4.6.0, `ruff` to
0.15.16, `pip-licenses` to 5.5.5
  - Bump expected `pre-commit` version in image tests to 4.6
  - Bump `actions/dependency-review-action` to v5.0.0

### Fixed

- **Renovate PR CI gates expired or broken**
([#550](vig-os/devkit#550))
- Renovate changelog workflow now runs under `bash` so `set -euo
pipefail` works inside the container
- Taplo lint hook no longer fetches remote schema catalogs (fetch
started failing in taplo 0.10)
- Renewed dependency-review allow-list exception for bats-file false
positive (`GHSA-wvrr-2x4r-394v`)

- **Image tests red on stale cargo-binstall pin**
([#557](vig-os/devkit#557))
- Bump expected `cargo-binstall` to 1.20 to match the latest upstream
release the image installs

- **arm64 release build failed with "exec format error"**
([#578](vig-os/devkit#578))
- Restore the multi-arch index digest for `python:3.14-slim-bookworm`
(`sha256:a9bee155…`); the previous bump pinned the amd64-only child
manifest, so the arm64 build pulled an amd64 image and the first `RUN`
died with `exec /bin/sh: exec format error`
- Document in `Containerfile` that manual base-image pins must use the
index digest, never a per-platform child manifest

### Security

- **Accept Debian won't-fix LOW CVEs in .trivyignore**
([#566](vig-os/devkit#566))
- Document 78 unfixed LOW Debian OS-package CVEs from the next-release
image with shared risk note and 2026-12-01 expiration
- Add `check-expirations` utility with pre-commit and CI enforcement so
expired `.trivyignore` entries fail the pipeline
- Security tab LOW count drops after the next release refreshes
`:latest`

- **Bump base image digest and clear fixable OS-package CVEs**
([#565](vig-os/devkit#565))
- Keep `python:3.14-slim-bookworm` pinned to its multi-arch index digest
(`sha256:a9bee155…`)
- Retain targeted `libgnutls30=3.7.9-2+deb12u7` upgrade (base ships
`deb12u6`; fixable GnuTLS CVEs require `deb12u7`)
- CI Trivy gate passes with zero fixable HIGH/CRITICAL OS findings after
rebuild

- **Patch fixable OpenSSL HIGH CVE blocking the 0.3.5 release**
([#580](vig-os/devkit#580))
- Targeted `libssl3`/`openssl` upgrade to `3.0.20-1~deb12u2` (base ships
`deb12u1`); clears `CVE-2026-45447` flagged by the release Trivy gate

- **Refresh bundled gh and uv to clear Go and Rust CVEs**
([#564](vig-os/devkit#564))
- Fresh image build pulls latest `gh` v2.93.0 and `uv` v0.11.19,
clearing all bundled-tool HIGH findings except one awaiting upstream
- `uv`/`uvx` Rust crate CVEs (including `rustls-webpki`
GHSA-82j2-j2ch-gfr8) no longer reported after rebuild
- Remaining `gh` Go-stdlib HIGH (CVE-2026-42504) kept in `.trivyignore`
until `gh` ships a Go 1.26.4 rebuild

- **Update pytest to v9.0.3**
([#528](vig-os/devkit#528))
  - Security patch for pytest dependency bump

- **Remediate nightly scan gate failures on :latest**
([#549](vig-os/devkit#549))
- Patched `libgnutls30` to `3.7.9-2+deb12u7` for fixable GnuTLS CVEs
(retained across the 3.14 base rebase; see #565)

- **Resolve repo-owned workflow security findings**
([#562](vig-os/devkit#562))
- Split Renovate changelog automation into read-only `pull_request`
build + privileged `workflow_run` commit, removing `pull_request_target`
and PR-head checkout under elevated permissions (Scorecard
`DangerousWorkflowID`)
- Add GitHub Actions to CodeQL language matrix so stale
`actions/missing-workflow-permissions` alerts auto-close on the next
default-branch run
- Add explicit `permissions:` to workspace `release-extension.yml`
template; downstream smoke-test updates flow through release re-sync
- Document accepted OpenSSF Scorecard posture (Fuzzing, CII) and
verified branch-protection rulesets in `SECURITY.md`

- **Update vulnerable Python dependencies**
([#563](vig-os/devkit#563))
- Bump `urllib3` 2.7.0, `requests` 2.34.2, `idna` 3.18, `Pygments`
2.20.0 in the repo lockfile
- Constrain workspace-template jupyter stack to patched versions
(`notebook` 7.5.6, `jupyterlab` 4.5.7, `jupyter-server` 2.18.0,
`mistune` 3.2.1)

- **Add downstream SECURITY.md template and close smoke-test Scorecard
gaps** ([#568](vig-os/devkit#568))
- Add `assets/workspace/SECURITY.md` so generated and smoke-test repos
ship a security policy (clears Scorecard `SecurityPolicyID` on the next
release re-sync)
- Document `FuzzingID` and `CIIBestPracticesID` as accepted won't-fix
posture in the template policy
- Document smoke-test-specific accepted findings (branch-protection,
code-review, pinned `download-then-run`) in the `assets/smoke-test/`
overlay, accepted because the deploy-validation repo runs fully
unattended
vig-os-release-app Bot added a commit that referenced this pull request Jun 10, 2026
# [Release
0.3.5](https://github.com/vig-os/devcontainer/releases/tag/0.3.5) -
2026-06-10

This PR prepares release 0.3.5 for merge to main.

## [0.3.5](https://github.com/vig-os/devcontainer/releases/tag/0.3.5) -
2026-06-10

### Changed

- **Consolidate Renovate dependency updates**
([#550](#550))
- Python 3.12 → 3.14.5 (`Containerfile`, `requires-python`, and
lockfile)
  - CI runners `ubuntu-22.04` → `24.04` and Node.js 22 → 24
- GitHub Actions major bumps: `setup-node` v6, `setup-uv` v8,
`github-script` v9
- SHA-pinned digest updates for checkout, codeql,
create-github-app-token, and taiki-e/install-action
- Pin Python, npm, and workspace template dependencies to exact versions
([#530](#530))
- `@devcontainers/cli` 0.87.0
([#538](#538))

- **Bump expected tool versions in image tests**
- `gh` 2.92 → 2.93, `just` 1.50 → 1.52, `cargo-binstall` 1.18 → 1.20 to
match latest upstream releases

- **Consolidate Renovate dependency updates (553–556)**
([#553](#553),
[#554](#554),
[#555](#555),
[#556](#556))
  - Pin `pytest` to 9.0.3, bump `pytest-cov` to 7.1.0, `rich` to 15.0.0
- Bump `github-backup` to 0.62.1, `pre-commit` to 4.6.0, `ruff` to
0.15.16, `pip-licenses` to 5.5.5
  - Bump expected `pre-commit` version in image tests to 4.6
  - Bump `actions/dependency-review-action` to v5.0.0

### Fixed

- **Renovate PR CI gates expired or broken**
([#550](#550))
- Renovate changelog workflow now runs under `bash` so `set -euo
pipefail` works inside the container
- Taplo lint hook no longer fetches remote schema catalogs (fetch
started failing in taplo 0.10)
- Renewed dependency-review allow-list exception for bats-file false
positive (`GHSA-wvrr-2x4r-394v`)

- **Image tests red on stale cargo-binstall pin**
([#557](#557))
- Bump expected `cargo-binstall` to 1.20 to match the latest upstream
release the image installs

- **arm64 release build failed with "exec format error"**
([#578](#578))
- Restore the multi-arch index digest for `python:3.14-slim-bookworm`
(`sha256:a9bee155…`); the previous bump pinned the amd64-only child
manifest, so the arm64 build pulled an amd64 image and the first `RUN`
died with `exec /bin/sh: exec format error`
- Document in `Containerfile` that manual base-image pins must use the
index digest, never a per-platform child manifest

### Security

- **Accept Debian won't-fix LOW CVEs in .trivyignore**
([#566](#566))
- Document 78 unfixed LOW Debian OS-package CVEs from the next-release
image with shared risk note and 2026-12-01 expiration
- Add `check-expirations` utility with pre-commit and CI enforcement so
expired `.trivyignore` entries fail the pipeline
- Security tab LOW count drops after the next release refreshes
`:latest`

- **Bump base image digest and clear fixable OS-package CVEs**
([#565](#565))
- Keep `python:3.14-slim-bookworm` pinned to its multi-arch index digest
(`sha256:a9bee155…`)
- Retain targeted `libgnutls30=3.7.9-2+deb12u7` upgrade (base ships
`deb12u6`; fixable GnuTLS CVEs require `deb12u7`)
- CI Trivy gate passes with zero fixable HIGH/CRITICAL OS findings after
rebuild

- **Patch fixable OpenSSL HIGH CVE blocking the 0.3.5 release**
([#580](#580))
- Targeted `libssl3`/`openssl` upgrade to `3.0.20-1~deb12u2` (base ships
`deb12u1`); clears `CVE-2026-45447` flagged by the release Trivy gate

- **Refresh bundled gh and uv to clear Go and Rust CVEs**
([#564](#564))
- Fresh image build pulls latest `gh` v2.93.0 and `uv` v0.11.19,
clearing all bundled-tool HIGH findings except one awaiting upstream
- `uv`/`uvx` Rust crate CVEs (including `rustls-webpki`
GHSA-82j2-j2ch-gfr8) no longer reported after rebuild
- Remaining `gh` Go-stdlib HIGH (CVE-2026-42504) kept in `.trivyignore`
until `gh` ships a Go 1.26.4 rebuild

- **Update pytest to v9.0.3**
([#528](#528))
  - Security patch for pytest dependency bump

- **Remediate nightly scan gate failures on :latest**
([#549](#549))
- Patched `libgnutls30` to `3.7.9-2+deb12u7` for fixable GnuTLS CVEs
(retained across the 3.14 base rebase; see #565)

- **Resolve repo-owned workflow security findings**
([#562](#562))
- Split Renovate changelog automation into read-only `pull_request`
build + privileged `workflow_run` commit, removing `pull_request_target`
and PR-head checkout under elevated permissions (Scorecard
`DangerousWorkflowID`)
- Add GitHub Actions to CodeQL language matrix so stale
`actions/missing-workflow-permissions` alerts auto-close on the next
default-branch run
- Add explicit `permissions:` to workspace `release-extension.yml`
template; downstream smoke-test updates flow through release re-sync
- Document accepted OpenSSF Scorecard posture (Fuzzing, CII) and
verified branch-protection rulesets in `SECURITY.md`

- **Update vulnerable Python dependencies**
([#563](#563))
- Bump `urllib3` 2.7.0, `requests` 2.34.2, `idna` 3.18, `Pygments`
2.20.0 in the repo lockfile
- Constrain workspace-template jupyter stack to patched versions
(`notebook` 7.5.6, `jupyterlab` 4.5.7, `jupyter-server` 2.18.0,
`mistune` 3.2.1)

- **Add downstream SECURITY.md template and close smoke-test Scorecard
gaps** ([#568](#568))
- Add `assets/workspace/SECURITY.md` so generated and smoke-test repos
ship a security policy (clears Scorecard `SecurityPolicyID` on the next
release re-sync)
- Document `FuzzingID` and `CIIBestPracticesID` as accepted won't-fix
posture in the template policy
- Document smoke-test-specific accepted findings (branch-protection,
code-review, pinned `download-then-run`) in the `assets/smoke-test/`
overlay, accepted because the deploy-validation repo runs fully
unattended
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