Commit e4c215b
committed
fix: prevent arbitrary code execution from node_modules directory
Before this patch any JavaScript files matching the globs:
`**/*.plugins.{js,mjs}`, `**/*.plugin.{js,mjs}`, or `**/*.slyde.{js,mjs}`
would be imported automatically. Which includes the `node_modules` folder.
Which means that any malicious package with a `*.slyde.js` file could have
arbitrary code execution by being installed and have the user run slyde in
a parent directory.1 parent ede4208 commit e4c215b
1 file changed
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 41 | + | |
48 | 42 | | |
49 | 43 | | |
50 | 44 | | |
| |||
0 commit comments