Skip to content

fix(deps-dev): bump promptfoo and override transitive advisories to clear npm audit - #579

Merged
sumithr merged 1 commit into
mainfrom
fix/promptfoo-audit-clean
Aug 3, 2026
Merged

sumithr merged 1 commit into
mainfrom
fix/promptfoo-audit-clean

Conversation

@sumithr

@sumithr sumithr commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Clears every open npm advisory. All are development scope in the promptfoo eval harness, which is private: true and never ships in the Python wheel.

Why the version bump alone is not enough

promptfoo 0.121.20 takes 30 vulnerabilities down to 9, but 6 high remain and npm audit --audit-level=high (the pre-commit gate and Dependabot's floor) still fails. npm's only suggested fix for five of them is promptfoo@0.120.14, flagged isSemVerMajor: true, which is a downgrade, not a fix.

Those five (@huggingface/transformers, onnxruntime-node, sharp, adm-zip, promptfoo itself) were flagged only because they depend on vulnerable sharp and adm-zip. Forcing the leaves up clears the parents.

Changes

  • promptfoo 0.121.11 to 0.121.20
  • overrides added for the three leaves that have real fixes:
    • sharp to ^0.35.3 (was 0.34.5, advisory <0.35.0)
    • adm-zip to ^0.6.0 (was 0.5.18, advisory <0.6.0)
    • @ai-sdk/provider-utils pinned to undici ^7.28.0 (was 5.29.0, advisory <=6.26.0)

The existing @opentelemetry/otlp-transformer / protobufjs override is unchanged.

Verification

before                       30 vulns (1 low, 15 moderate, 14 high)
after bump alone             21 vulns (11 moderate, 10 high)
after bump + audit fix        9 vulns ( 3 moderate,  6 high)   gate still FAILS
after bump + overrides        0 vulns                          gate PASSES

npm audit --audit-level=high            EXIT=0
npm audit (all levels)                  EXIT=0
pre-commit "npm audit (high+critical)"  Passed
npx promptfoo --version                 0.121.20

Supersedes Dependabot PRs #573, #572, #571, #567 and #564, each of which patched one slice of this transitively while leaving the rest open.

No eval was run: this changes only the dependency lockfile, not any prompt, skill or rubric.

@sumithr
sumithr merged commit eea45a1 into main Aug 3, 2026
33 checks passed
@sumithr
sumithr deleted the fix/promptfoo-audit-clean branch August 3, 2026 13:07
sumithr added a commit that referenced this pull request Aug 3, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.60.3](v0.60.2...v0.60.3)
(2026-08-03)


### Bug Fixes

* **deps-dev:** bump promptfoo and override transitive advisories to
clear npm audit ([#579](#579))
([eea45a1](eea45a1))
* **deps:** floor mcp at 1.28.1 to close three transport advisories
([#578](#578))
([567714e](567714e))


### Build System

* **deps-dev:** bump ruff to 0.16.1 and sync the pre-commit rev
([#582](#582))
([e037904](e037904))
* **deps-dev:** update tree-sitter requirement from &lt;0.26,&gt;=0.25
to &gt;=0.25,&lt;0.27
([#489](#489))
([81d3d49](81d3d49))
* **deps:** bump actions/setup-node from 6 to 7
([#553](#553))
([32129a0](32129a0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <release-please[bot]@users.noreply.github.com>
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