node-imap icon indicating copy to clipboard operation
node-imap copied to clipboard

Switch to safe-utf 7 to avoid vulnerability notifications

Open alisonaquinas opened this issue 2 years ago • 4 comments

I've been working with this library recently for a personal project, and I'm hugely grateful for the work that's gone into it! The problem I ran into is that semver, a dependency of utf7 has a known vulnerability:

$ npm audit
# npm audit report

semver  <5.7.2
Severity: moderate
semver vulnerable to Regular Expression Denial of Service - https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
fix available via `npm audit fix --force`
Will install [email protected], which is a breaking change
node_modules/semver
  utf7  >=1.0.2
  Depends on vulnerable versions of semver
  node_modules/utf7

2 moderate severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Unfortunately, Konstantin, who created the utf7 library, never published the code on a public repository where a Pull request could be submitted. I've reached out to him directly, but in the meantime, I introduced https://github.com/alisonaquinas/node-safe-utf7 to resolve the issue.

alisonaquinas avatar Nov 04 '23 21:11 alisonaquinas

got back to me and pointed me to https://github.com/kkaefer/utf7/, I've posted https://github.com/kkaefer/utf7/pull/15

alisonaquinas avatar Nov 04 '23 22:11 alisonaquinas

I've not heard back from Konstantin despite my best efforts. He's not been merging PRs at all, given the state of other PRs and issues. My latest version removes the need for semver completely.

alisonaquinas avatar Nov 10 '23 00:11 alisonaquinas

Hi! are there some news about this MR?

ducphu0ng avatar Aug 21 '24 21:08 ducphu0ng