The dependency static-eval has been flag with a security warning on snyk
An issue has been raised on the static-eval repo
Thanks @pocesar
MODERATE Sandbox Breakout / Arbitrary Code Execution Vulnerability
Advisory Published - Feb 14th, 2019
Reported - Jan 3rd, 2019
Question
Is this package essential?
Is there an Alternative?
p.s Love pdfmake! Keep up the good work.
static-eval is used in brfs. brfs in pdfmake is used only in development for building pdfmake.
In production pdfmake is not brfs and static-eval used.
Can you not remove it in development too ? Just curious
No, it is not possible. brfs library is needed.
npm isn't warning us about the dev dependency, but the production dependency on linebreak which itself depends on brfs which depends on static-module which depends on static-eval. I've opened an issue in foliojs/linebreak#12. Ah - also fontkit (used by pdfkit) uses brfs - updated an issue on their tracker too.
Most helpful comment
npmisn't warning us about the dev dependency, but the production dependency onlinebreakwhich itself depends onbrfswhich depends onstatic-modulewhich depends onstatic-eval. I've opened an issue in foliojs/linebreak#12. Ah - alsofontkit(used bypdfkit) usesbrfs- updated an issue on their tracker too.