🐛 [BUG] fmin 0.0.2 depends on vulnerable version of rollup < 2.79.2
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 591
- PR merge metrics
- No merged PRs in 30d
Description
g2plot 2.4.32 depends on fmin 0.0.2 which depends on rollup < 2.79.2 which has a high severity vulnerability.
```
rollup <2.79.2
Severity: high
DOM Clobbering Gadget found in rollup bundled scripts that leads to XSS - https://github.com/advisories/GHSA-gcx4-mw62-g8wm
fix available via `npm audit fix`
node_modules/fmin/node_modules/rollup
fmin <=0.0.2
Depends on vulnerable versions of rollup
node_modules/fmin
@antv/g2plot 2.3.33 - 2.4.32
Depends on vulnerable versions of fmin
node_modules/@antv/g2plot
```
Solution: bump fmin version to 0.0.4
Contributor guide
Research direction
Start by locating the dependency declaration that brings in fmin and verify the resolved rollup version in the package tree. Update fmin to 0.0.4, then run the project's dependency audit and tests or build; done means the vulnerable rollup version is no longer installed and checks pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rollup, typescript
- Domain
- build-system, security
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100