Repository navigation
chore(security): remediate OSV findings #538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
bd34b4c
ddb8f41
8c96c8d
3142e16
fe68767
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -101,7 +101,7 @@ | |
| "@databricks/databricks-sql-kernel-win32-arm64-msvc": "1.1.0" | ||
| }, | ||
| "overrides": { | ||
| "basic-ftp": "^5.3.1", | ||
| "basic-ftp": "^6.2.1", | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. notice another vulnerability fixed in 6.2.2: GHSA-5rfr-xx34-2xxv
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 6.2.2 may not be available in our internal proxy for another week or so, I think we can update to that later |
||
| "@75lb/deep-merge": "^1.1.2", | ||
| "ws": "^8.18.0", | ||
| "ip-address": "^10.1.1", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔵 Low — This override forces
basic-ftpacross a major version boundary (5.x → 6.x), pastget-uri's declared^5.3.1cap. As the SECURITY-OVERRIDES.md note acknowledges, 6.0 changes the default ofallowSeparateTransferHosttofalse, so FTP data connections where the PASV/EPSV reply names a different host than the control connection are now rejected. For this connector that path is only reachable via anftp://proxy URI through proxy-agent, so the blast radius is small and the change is intentional — flagging only so the behavioral shift is visible to reviewers/consumers who may rely on FTP-proxy transfers. No change requested.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is basic-ftp used for in the codebase? is the vulnerable path touched by our code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question.
basic-ftpisn't a direct dependency — it's pulled in transitively throughproxy-agent → pac-proxy-agent → get-uri → basic-ftp(see SECURITY-OVERRIDES.md). The only consumer ofproxy-agentin our code isHttpConnection.createProxyAgent(lib/connection/connections/HttpConnection.ts:81), which builds the proxy URL fromProxyOptions.protocol. That field is typed to'http' | 'https' | 'socks' | 'socks4' | 'socks4a' | 'socks5' | 'socks5h'(lib/connection/contracts/IConnectionOptions.ts) —ftpis not an allowed value, so we never hand proxy-agent anftp://proxy URI.get-uri's FTP branch (the only code that touchesbasic-ftp) is reached only via an FTP-scheme proxy, so in practice our code path never exercisesbasic-ftpat all. The override exists purely to clear the OSV finding on the transitive dependency; theallowSeparateTransferHostbehavioral change in 6.x has no reachable effect here. No change needed.