[Snyk] Upgrade winston from 3.8.2 to 3.19.0#329
Conversation
Snyk has created this PR to upgrade winston from 3.8.2 to 3.19.0. See this package in npm: winston See this project in Snyk: https://app.snyk.io/org/newtonombese1/project/16fc7bcb-0006-45bf-b841-18e5f30b9228?utm_source=github&utm_medium=referral&page=upgrade-pr
Summary of ChangesHello @nejidevelops, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request automates the process of updating the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request upgrades the winston package from version 3.8.2 to 3.19.0. This is a crucial update as it addresses a reported Prototype Pollution vulnerability (SNYK-JS-XML2JS-5414874) with a high severity score. Keeping dependencies up-to-date is essential for maintaining the security posture of the application. However, it's important to note a potential breaking change for TypeScript users introduced in winston v3.15.0, which removes LogCallback from TS definitions. Please ensure that the application's TypeScript code is compatible with this change.
| "source-map-support": "^0.5.11", | ||
| "uuid": "^3.3.2", | ||
| "winston": "^3.2.1" | ||
| "winston": "^3.19.0" |
There was a problem hiding this comment.
The upgrade of winston to ^3.19.0 is a positive step towards enhancing the security of the application by addressing the Prototype Pollution vulnerability (SNYK-JS-XML2JS-5414874). However, the release notes for winston v3.15.0 mention the removal of LogCallback from TypeScript definitions. If this application uses TypeScript and relies on LogCallback, this change could introduce compilation errors or unexpected behavior. Please verify if LogCallback is used and update the code as necessary to ensure compatibility with the new winston version.
Snyk has created this PR to upgrade winston from 3.8.2 to 3.19.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 18 versions ahead of your current version.
The recommended version was released a month ago.
Issues fixed by the recommended upgrade:
SNYK-JS-XML2JS-5414874
Release notes
Package name: winston
-
3.19.0 - 2025-12-07
- Run npm audit fix e7ccdc4
- Don't include jest.config.js in npm package 5a63c8c
- fix: append error cause when using
- Bump rimraf from 5.0.1 to 5.0.10 (#2517) 8a956fd
- fix: ensure File transport flushes all data before emitting finish (#2594) 86c890f
- Bump actions/setup-node from 4 to 6 (#2589) 3b8be02
- Bump @ babel/core from 7.28.0 to 7.28.5 (#2591) f4c3e2c
- Bump actions/checkout from 4 to 6 (#2593) dd7906e
- chore: migrate test runner from mocha to jest (#2567) 2e9eb18
-
3.18.3 - 2025-09-30
- Update diagnostics dependency (removes fix-esm transitive dependency) a15a9e9
-
3.18.2 - 2025-09-30
- Bump diagnostics package to resolve #2583 (again) f4582c3
-
3.18.1 - 2025-09-30
- Bump diagnostics package to resolve #2583 e668c2c
-
3.18.0 - 2025-09-30
- Update diagnostics package to latest version to remove vulnerability 376e331
- add @ initd.sg/winston-cloudwatch (#2532) 71ee92a
- Update transports.md (#2549) 3547a95
- docs: update transport.md (#2550) dc88db0
- feat: adds helper function for highest log level (#2514) c69cdb0
-
3.17.0 - 2024-11-10
- Try winston-transport 4.9.0 3e87128
- Revert "Try bumping winston-transport to 4.8.0" 69625fc
- Revert "Try bumping winston-transport to 4.8.0" 876ef7a
- Try bumping winston-transport to 4.8.0 7ef2c1d
- Try bumping winston-transport to 4.8.0 fe4b64e
- Bump logform c9fd9a4
- Revert "Update logform and winston-transport" 14fef0f
- Merge branch 'master' of github.com:winstonjs/winston 545b683
- Update logform and winston-transport cceb265
- Bump mocha from 10.7.3 to 10.8.2 (#2523) bb529b6
- Bump async from 3.2.5 to 3.2.6 (#2516) ae847ab
-
3.16.0 - 2024-11-01
- Feature - optionally include Error.cause property (#2447) 201b6f1
-
3.15.0 - 2024-10-05
- remove logcallback (#2513) 3a54777
- chore(docs): Update README.md w/ usage comments (#2507) f110f61
- Bump nyc from 15.1.0 to 17.1.0 (#2511) f5dde86
- Bump @ babel/cli from 7.24.7 to 7.25.6 (#2512) d1b8dc6
- Bump @ babel/preset-env from 7.24.8 to 7.25.4 (#2506) 564161a
- Bump mocha from 10.7.0 to 10.7.3 (#2500) eb7e315
- Unified Handler Tests (#2020) 22aab6d
-
3.14.2 - 2024-08-14
- Move initialization to constructor (#2503) 2458ba6
-
3.14.1 - 2024-08-08
- Save a reference to console methods in console transport (#2498) e82752f
- Add
- Bump mocha from 10.6.0 to 10.7.0 (#2489) 62acaad
- Update readme with forceConsole info (#2493) b2b79af
-
3.14.0 - 2024-08-08
-
3.13.1 - 2024-07-10
-
3.13.0 - 2024-03-24
-
3.12.1 - 2024-03-24
-
3.12.0 - 2024-03-04
-
3.11.0 - 2023-10-07
-
3.10.0 - 2023-07-10
-
3.9.0 - 2023-05-26
-
3.8.2 - 2022-09-07
from winston GitHub release noteslogger.child()(#2467) e74a7aev3.18.3...v3.19.0
v3.18.2...v3.18.3
v3.18.1...v3.18.2
v3.18.0...v3.18.1
v3.17.0...v3.18.0
v3.16.0...v3.17.0
v3.15.0...v3.16.0
Note: we removed LogCallback from the TS definitions because the underlying library didn't actually support these. If this causes issues in your apps, we recommend you remove references to LogCallbacks, since such code was not being executed anyways. See #2513 and the issue linked therein.
v3.14.2...v3.15.0
v3.14.1...v3.14.2
forceConsoletoConsoleTransportOptions(#2496) 4ff0538v3.14.0...v3.14.1
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: