Repository navigation
fix(evals): update proxy-agent so the eval lockfile takes basic-ftp 6.2.6 - #1706
Merged
Merged
Conversation
….2.6 get-uri 8.0.2 widened its basic-ftp range to ^6.2.4, and proxy-agent 8.0.3 pulls it in through pac-proxy-agent 9.1.1. Refreshing proxy-agent within promptfoo's ^8.0.0 range moves basic-ftp from 5.3.1 to 6.2.6, which clears Dependabot alerts 50, 111 and 112. Fixes #1520
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR clears the three open
basic-ftpsecurity alerts in the eval tree (Dependabot alerts 50, 111 and 112; the highest patched version among them is 6.2.4). The blocker #1520 tracked is gone upstream:get-uri8.0.2 widened itsbasic-ftprange from^5.3.1to^6.2.4, andproxy-agent8.0.3 reaches it throughpac-proxy-agent9.1.1.[email protected]already acceptsproxy-agent@^8.0.0, sonpm update proxy-agentmovesbasic-ftpfrom 5.3.1 to 6.2.6 without an override and without touchingpackage.json.The lockfile change stays inside that one dependency chain:
proxy-agent8.0.3,pac-proxy-agent9.1.1,get-uri8.0.2,pac-resolver9.0.2,degenerator7.0.2,basic-ftp6.2.6, andquickjs-wasi2.2.0 → 3.7.0. Thequickjs-wasimajor comes from the newpac-resolver/degeneratorreleases, which require^3.0.0.Verified locally:
npm --prefix evals testpasses 7 of 7, andnpx promptfoo --versionstill starts and reports 0.124.1.proxy-agentandbasic-ftp, fetched adata:URI throughget-uri, and evaluated a PAC script throughpac-proxy-agent(the path that runs onquickjs-wasi3), which returnedDIRECT.npm auditno longer listsbasic-ftporget-uri. The only remaining findings areglob/minimatch, which fix: override vulnerable eval glob and minimatch versions #1635 covers.There is no regression test because this is a lockfile-only change; the Dependabot alerts closing after merge confirm it. This PR and #1635 both edit
evals/package-lock.json, but they change different entries and test-merge cleanly.Fixes #1520