You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
potential security vulnerability via an outdated version of static-module@1.5.0 > static-eval@0.2.4 #19
Hi,
this is perhaps not the place to report it, please feel free to close the issue, but the version of static-module specified in the package.json is affected by this security vulnerability: https://nodesecurity.io/advisories/548
cwise@1.0.10 > static-module@1.5.0 > static-eval@0.2.4
From my findings, static-module fails (i.e. does not transform cwise({args: [], body: () => {}}) expressions) whenever body() mutates one if its input arguments.
Reacted by Matthias John, Michael Turkeev, giichiro.sasaki, Ryan Guill, Jared McKimm, Johnny Edwards, Yutaka Takeda, AJ Raczkowski, Steffen, Tony Wieser (previously Microsoft Research) and 5 more
Activity
etpinard commentedon Feb 21, 2018
Unfortunately, bumping
static-moduleto the unvulnerable2.xseries won't be trivial.Changes from PRs browserify/static-eval#18 and browserify/static-module#38 appear to be incompatible with
cwise.From my findings,
static-modulefails (i.e. does not transformcwise({args: [], body: () => {}})expressions) wheneverbody()mutates one if its input arguments.For example, with
then,
node cmd.js < works.jsworks just fine (but doesn't do anything 😏 ), andnode cmd.js < fails.jsoutputs:that is, it correctly removes the
requirestatement, but ignores thecwisecall.michal-rad commentedon Feb 27, 2018
+1
etpinard commentedon Mar 5, 2018
@alhugot I believe your patch in https://github.com/alhugot/cwise/commit/39b4ad8a1c67d94903bdc139e59bc764e59bad6f defeats the purpose of browserify suite where cwise is used as a transform.
To double-check, would you mind comparing the output of
browserify -t cwise test/fill.jsusing old and newstatic-moduleversions?etpinard commentedon Mar 5, 2018
No worries. Thanks for the help!
dutscher commentedon Mar 9, 2018
+1
hakandilek commentedon May 30, 2018
@etpinard
browserify -t cwise test/fill.jsoutputs are the same withstatic-module@2.2.5etpinard commentedon May 30, 2018
@hakandilek thanks for the headsup, but
npm testfails for me withstatic-module@2.2.5.hakandilek commentedon May 30, 2018
etpinard commentedon May 30, 2018
Ha. Sorry I missed that. Thanks for the PR.
srinivasrk commentedon Jun 22, 2018
any update on this issue ?
elf-mouse commentedon Feb 28, 2019
potential security vulnerability +1
k-sai-kiranmayee commentedon Sep 25, 2019
Hello! Is there any update on this one...Is this #21 successfully merged?
Thank you!