chore(deps): consolidate dependency bumps + fix webpack SSRF in samples/weather-forecast#239
Open
chore(deps): consolidate dependency bumps + fix webpack SSRF in samples/weather-forecast#239
Conversation
Consolidates all dependency bumps from PRs #233-#238: - follow-redirects: 1.15.9 → 1.16.0 (via yarn.lock, PR #238) - typescript: 5.9.2 → 6.0.2 (PR #237) - @types/node: 24.5.2 → 25.5.2 (PR #236) - copy-webpack-plugin: ^13.0.1 → ^14.0.0 (PR #235) - axios: ^1.13.5 → ^1.15.0 (PR #233) - @staffbase/widget-sdk: ^3.15.5 → ^3.17.0 (PR #234) - acorn: ^8.15.0 → ^8.16.0 (PR #234) - dayjs: 1.11.18 → 1.11.20 (PR #234) - @babel/core: ^7.28.4 → ^7.29.0 (PR #234) - @babel/preset-env: ^7.28.3 → ^7.29.2 (PR #234) - @babel/preset-react: ^7.27.1 → ^7.28.5 (PR #234) - @babel/preset-typescript: ^7.27.1 → ^7.28.5 (PR #234) - @testing-library/jest-dom: ^6.8.0 → ^6.9.1 (PR #234) - @testing-library/react: ^16.3.0 → ^16.3.2 (PR #234) - core-js: 3.45.1 → 3.49.0 (PR #234) - jest-environment-jsdom: ^30.1.2 → ^30.3.0 (PR #234) - prettier: 3.6.2 → 3.8.1 (PR #234) - ts-loader: ^9.5.4 → ^9.5.7 (PR #234) - webpack-dev-server: ^5.2.2 → ^5.2.3 (PR #234) Fixes for TypeScript 6.0 breaking changes: - Add ignoreDeprecations: "6.0" to tsconfig.json (moduleResolution/baseUrl deprecation) - Convert require() to ES import in webpack.common.ts (TS2591 error) - Add missing flags property to BranchInformation mock (new required field in @staffbase/widget-sdk 3.17) Co-authored-by: GitHub Copilot <copilot@noreply.github.com> Agent-Logs-Url: https://github.com/Staffbase/custom-widgets-examples/sessions/adca9c8d-9484-48fd-83f8-160d37a1a170 Co-authored-by: maximizeIT <8626039+maximizeIT@users.noreply.github.com>
…-2025-68458 Adds "webpack": "5.105.4" to yarn resolutions, ensuring the transitive webpack@^5 dependency (which was resolving to the vulnerable 5.101.3) is forced to the patched version. Both SSRF alerts (#96 and #97) are resolved. Co-authored-by: GitHub Copilot <copilot@noreply.github.com> Agent-Logs-Url: https://github.com/Staffbase/custom-widgets-examples/sessions/adca9c8d-9484-48fd-83f8-160d37a1a170 Co-authored-by: maximizeIT <8626039+maximizeIT@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
maximizeIT
April 16, 2026 00:49
View session
maximizeIT
approved these changes
Apr 16, 2026
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.
Consolidates dependabot PRs #233–#238 into a single update and closes two webpack SSRF security alerts (#96/#97) where a transitive
webpack@^5was resolving to the vulnerable5.101.3.Dependency bumps
axios^1.13.5→^1.15.0,@staffbase/widget-sdk^3.15.5→^3.17.0,acorn^8.15.0→^8.16.0,dayjs1.11.18→1.11.20typescript5.9.2→6.0.2,@types/node24.5.2→25.5.2,copy-webpack-plugin^13.0.1→**^14.0.0**,@babel/core|preset-*,@testing-library/*,core-js,jest-environment-jsdom,prettier,ts-loader,webpack-dev-serverfollow-redirects1.15.9→1.16.0Security: webpack SSRF (CVE-2025-68157 / CVE-2025-68458)
Both CVEs (HTTP-redirect allowedUris bypass and URL userinfo bypass, fixed in webpack ≥5.104.1) were exploitable through a transitive dependency requiring just
webpack@^5, which yarn resolved to the unfixed5.101.3independently of the project's own^5.104.1pin.Fix: pin via yarn resolutions so all ranges collapse to
5.105.4:TypeScript 6 compatibility fixes
tsconfig.json: add"ignoreDeprecations": "6.0"— TS6 now errors on the deprecatedmoduleResolution: "node"andbaseUrloptions (TS5101/TS5107)webpack.common.ts: replacerequire("copy-webpack-plugin")with an ES import — TS6 no longer implicitly provides therequireglobal (TS2591)dev/widget-api-mock/index.ts: addflags: []to theBranchInformationmock — new required field introduced in@staffbase/widget-sdk3.17