Skip to content

address dep vulns#153

Merged
FGRibreau merged 7 commits intoFGRibreau:masterfrom
markstos:address-dep-vulns
Oct 28, 2025
Merged

address dep vulns#153
FGRibreau merged 7 commits intoFGRibreau:masterfrom
markstos:address-dep-vulns

Conversation

@markstos
Copy link
Contributor

This PR builds on the PRs from earlier today, addressing all the vulnerable dependency issues for this module reported by npm audit, confirming all tests pass after the change.

To facilitate this, some dev Dependencies that have vulns are not necessary were removed from the project, including updtr-- not used in ~5 years-- and coveralls which ironically still
uses the deprecated request module.

- fillform.com no longer exists
- httpbingo.org changed some responses
- Several tests needed error handling so they fail instead of timing out.
- Some error handling updates were needed for modern node versions.
- Longer timeouts were needed for test suite reliability with remote hosts.
request 2.88.1 used tough-cookie 2.5.0 as a dependency
In that version of tough-cookie, the `getCookies()`
method was not a sync method. Either you had to call
a callback or use `getCookiesSync()`.

postman-request also uses a tough-cookie-compatible fork.

Ref: https://github.com/request/request/blob/3c0cddc7c8eb60b470e9519da85896ed7ee0081e/package.json#L47
Ref: https://www.npmjs.com/package/tough-cookie/v/2.5.0
postman-request is a fork of request 2.88.1, with only some security
and bug fixes applied.

All tested passed as-is with exception one that appeared it needed to
be updated to be compatible with the last released version of `request`
as well.
This commit changes the dep security fixes that can be fixed by
by `npm audit fix`
More aggresively upgrades vulnerable deps. These are all
"devDeps", and all tests pass after the update.
It was no longer actively being used.
`coveralls` depended on deprecated `request` module which in turn
depended on vulnerable `request` module.
@FGRibreau FGRibreau merged commit c44fac5 into FGRibreau:master Oct 28, 2025
@FGRibreau
Copy link
Owner

Great work, will merge it and release it as a new major version !

@FGRibreau
Copy link
Owner

Thanks a lot, released in v8.0, https://github.com/FGRibreau/node-request-retry/releases/tag/v8.0.0

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.

2 participants