Skip to content

[Snyk] Security upgrade @11ty/eleventy from 1.0.2 to 3.0.0 - #30

Open
kingjay66 wants to merge 1 commit into
mainfrom
snyk-fix-c6314577aadd82fa2b9f7d6acc6b18f5
Open

kingjay66 wants to merge 1 commit into
mainfrom
snyk-fix-c6314577aadd82fa2b9f7d6acc6b18f5

Conversation

@kingjay66

Copy link
Copy Markdown
Owner

snyk-top-banner

Snyk has created this PR to fix 7 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • package.json
  • package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Infinite loop
SNYK-JS-MARKDOWNIT-6483324
  696  
high severity Improper Control of Generation of Code ('Code Injection')
SNYK-JS-PUGCODEGEN-7086056
  696  
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-SEMVER-3247795
  696  
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-PATHTOREGEXP-7925106
  666  
medium severity Missing Release of Resource after Effective Lifetime
SNYK-JS-INFLIGHT-6095116
  631  
medium severity Cross-site Scripting (XSS)
SNYK-JS-NUNJUCKS-5431309
  626  
medium severity Improper Control of Dynamically-Managed Code Resources
SNYK-JS-EJS-6689533
  479  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Improper Control of Dynamically-Managed Code Resources
🦉 Cross-site Scripting (XSS)
🦉 Regular Expression Denial of Service (ReDoS)
🦉 More lessons are available in Snyk Learn

[//]: # 'snyk:metadata:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"@11ty/eleventy","from":"1.0.2","to":"3.0.0"}],"env":"prod","issuesToFix":[{"exploit_maturity":"No Known Exploit","id":"SNYK-JS-EJS-6689533","priority_score":479,"priority_score_factors":[{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"5.3","score":265},{"type":"scoreVersion","label":"v1","score":1}],"severity":"medium","title":"Improper Control of Dynamically-Managed Code Resources"},{"exploit_maturity":"Proof of Concept","id":"SNYK-JS-INFLIGHT-6095116","priority_score":631,"priority_score_factors":[{"type":"exploit","label":"Proof of Concept","score":107},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"6.2","score":310},{"type":"scoreVersion","label":"v1","score":1}],"severity":"medium","title":"Missing Release of Resource after Effective Lifetime"},{"exploit_maturity":"Proof of Concept","id":"SNYK-JS-MARKDOWNIT-6483324","priority_score":696,"priority_score_factors":[{"type":"exploit","label":"Proof of Concept","score":107},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"7.5","score":375},{"type":"scoreVersion","label":"v1","score":1}],"severity":"high","title":"Infinite loop"},{"exploit_maturity":"Proof of Concept","id":"SNYK-JS-NUNJUCKS-5431309","priority_score":626,"priority_score_factors":[{"type":"exploit","label":"Proof of Concept","score":107},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"6.1","score":305},{"type":"scoreVersion","label":"v1","score":1}],"severity":"medium","title":"Cross-site Scripting (XSS)"},{"exploit_maturity":"Proof of Concept","id":"SNYK-JS-PATHTOREGEXP-7925106","priority_score":666,"priority_score_factors":[{"type":"exploit","label":"Proof of Concept","score":107},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"6.9","score":345},{"type":"scoreVersion","label":"v1","score":1}],"severity":"medium","title":"Regular Expression Denial of Service (ReDoS)"},{"exploit_maturity":"Proof of Concept","id":"SNYK-JS-PUGCODEGEN-7086056","priority_score":696,"priority_score_factors":[{"type":"exploit","label":"Proof of Concept","score":107},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"7.5","score":375},{"type":"scoreVersion","label":"v1","score":1}],"severity":"high","title":"Improper Control of Generation of Code ('Code Injection')"},{"exploit_maturity":"Proof of Concept","id":"SNYK-JS-SEMVER-3247795","priority_score":696,"priority_score_factors":[{"type":"exploit","label":"Proof of Concept","score":107},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"7.5","score":375},{"type":"scoreVersion","label":"v1","score":1}],"severity":"high","title":"Regular Expression Denial of Service (ReDoS)"}],"prId":"262b30a2-ed80-44a9-836b-f2501c484637","prPublicId":"262b30a2-ed80-44a9-836b-f2501c484637","packageManager":"npm","priorityScoreList":[479,631,696,626,666,696,696],"projectPublicId":"0fa081ed-bb4b-40fc-91c8-5725bd1ebda5","projectUrl":"https://app.snyk.io/org/kingjay66/project/0fa081ed-bb4b-40fc-91c8-5725bd1ebda5?utm_source=github&utm_medium=referral&page=fix-pr","prType":"fix","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":["updated-fix-title","priorityScore"],"type":"auto","upgrade":["SNYK-JS-EJS-6689533","SNYK-JS-INFLIGHT-6095116","SNYK-JS-MARKDOWNIT-6483324","SNYK-JS-NUNJUCKS-5431309","SNYK-JS-PATHTOREGEXP-7925106","SNYK-JS-PUGCODEGEN-7086056","SNYK-JS-SEMVER-3247795"],"vulns":["SNYK-JS-EJS-6689533","SNYK-JS-INFLIGHT-6095116","SNYK-JS-MARKDOWNIT-6483324","SNYK-JS-NUNJUCKS-5431309","SNYK-JS-PATHTOREGEXP-7925106","SNYK-JS-PUGCODEGEN-7086056","SNYK-JS-SEMVER-3247795"],"patch":[],"isBreakingChange":true,"remediationStrategy":"vuln"}'

@socket-security

Copy link
Copy Markdown

@socket-security

Copy link
Copy Markdown

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Environment variable access npm/commander@10.0.1 🚫
Environment variable access npm/commander@10.0.1 🚫
Uses eval npm/depd@1.1.2 🚫
Trivial Package npm/slash@1.0.0 🚫
Filesystem access npm/mkdirp@3.0.1 🚫
Environment variable access npm/mkdirp@3.0.1 🚫
Environment variable access npm/mkdirp@3.0.1 🚫
Filesystem access npm/mkdirp@3.0.1 🚫
New author npm/abbrev@2.0.0 🚫
New author npm/destroy@1.0.4 🚫
Trivial Package npm/array-differ@1.0.0 🚫
New author npm/@one-ini/wasm@0.1.1 🚫
Dynamic require npm/@one-ini/wasm@0.1.1 🚫
Filesystem access npm/@one-ini/wasm@0.1.1 🚫
Environment variable access npm/minimatch@9.0.1 🚫
Environment variable access npm/minimatch@9.0.1 🚫
Uses eval npm/nunjucks@3.2.4 🚫
Filesystem access npm/nunjucks@3.2.4 🚫
Dynamic require npm/nunjucks@3.2.4 🚫
Filesystem access npm/@11ty/dependency-tree-esm@1.0.0 🚫
Filesystem access npm/@11ty/dependency-tree-esm@1.0.0 🚫
Network access npm/@11ty/posthtml-urls@1.0.0 🚫
New author npm/encodeurl@2.0.0 🚫
Environment variable access npm/minimatch@9.0.5 🚫
Environment variable access npm/minimatch@9.0.5 🚫
Environment variable access npm/rimraf@5.0.10 🚫
Filesystem access npm/rimraf@5.0.10 🚫
Shell access npm/foreground-child@3.3.0 🚫
Network access npm/@11ty/eleventy-dev-server@2.0.4 🚫
Network access npm/@11ty/eleventy-dev-server@2.0.4 🚫
Network access npm/engine.io-client@6.6.1 🚫
Environment variable access npm/@11ty/eleventy-plugin-bundle@3.0.0 🚫
Environment variable access npm/@11ty/eleventy@3.0.0 🚫
Environment variable access npm/@11ty/eleventy@3.0.0 🚫
Environment variable access npm/@11ty/eleventy@3.0.0 🚫
Environment variable access npm/@11ty/eleventy@3.0.0 🚫
Environment variable access npm/@11ty/eleventy@3.0.0 🚫
Environment variable access npm/@11ty/eleventy@3.0.0 🚫
Dynamic require npm/@11ty/eleventy@3.0.0 🚫
Environment variable access npm/@11ty/eleventy@3.0.0 🚫

View full report↗︎

Next steps

What is environment variable access?

Package accesses environment variables, which may be a sign of credential stuffing or data theft.

Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

What is dynamic code execution?

Package uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.

Avoid packages that use dynamic code execution like eval(), since this could potentially execute any code.

What are trivial packages?

Packages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.

Removing this package as a dependency and implementing its logic will reduce supply chain risk.

What is filesystem access?

Accesses the file system, and could potentially read sensitive data.

If a package must read the file system, clarify what it will read and ensure it reads only what it claims to. If appropriate, packages can leave file system access to consumers and operate on data passed to it instead.

What is new author?

A new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.

Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

What is dynamic require?

Dynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.

Packages should avoid dynamic imports when possible. Audit the use of dynamic require to ensure it is not executing malicious or vulnerable code.

What is network access?

This module accesses the network.

Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

What is shell access?

This module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.

Packages should avoid accessing the shell which can reduce portability, and make it easier for malicious shell access to be introduced.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/commander@10.0.1
  • @SocketSecurity ignore npm/depd@1.1.2
  • @SocketSecurity ignore npm/slash@1.0.0
  • @SocketSecurity ignore npm/mkdirp@3.0.1
  • @SocketSecurity ignore npm/abbrev@2.0.0
  • @SocketSecurity ignore npm/destroy@1.0.4
  • @SocketSecurity ignore npm/array-differ@1.0.0
  • @SocketSecurity ignore npm/@one-ini/wasm@0.1.1
  • @SocketSecurity ignore npm/minimatch@9.0.1
  • @SocketSecurity ignore npm/nunjucks@3.2.4
  • @SocketSecurity ignore npm/@11ty/dependency-tree-esm@1.0.0
  • @SocketSecurity ignore npm/@11ty/posthtml-urls@1.0.0
  • @SocketSecurity ignore npm/encodeurl@2.0.0
  • @SocketSecurity ignore npm/minimatch@9.0.5
  • @SocketSecurity ignore npm/rimraf@5.0.10
  • @SocketSecurity ignore npm/foreground-child@3.3.0
  • @SocketSecurity ignore npm/@11ty/eleventy-dev-server@2.0.4
  • @SocketSecurity ignore npm/engine.io-client@6.6.1
  • @SocketSecurity ignore npm/@11ty/eleventy-plugin-bundle@3.0.0
  • @SocketSecurity ignore npm/@11ty/eleventy@3.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants