Getting an Image Vulnerability error for node.js for path-parse, in the docker image scan post build.
node version: 12.16.1 Image: alpine3:3.10.2
Error from vulnerability image scan
Fix Status fixed in: 1.0.7
All versions of package path-parse are vulnerable to Regular Expression Denial of Service (ReDoS) via splitDeviceRe, splitTailRe, and splitPathRe regular expressions. ReDoS exhibits polynomial worst-case time complexity.
I tried the below commands to fix the issue.
RUN npm install path-parse@1.0.7 \
&& yarn add path-parse \
and
RUN npm install --save path-parse \
But after the code change both the commands were tried, docker build still the scan shows same result.
Please let me know if there are any pointers for this issue.
ref: https://www.npmjs.com/package/path-parse
Thanks in Advance.