Skip to content

fix(deps): upgrade shescape to 2.1.10#328

Open
snyk-io[bot] wants to merge 1 commit intomainfrom
snyk-fix-f2bbc071fa84fa3882ba2e7740e1a341
Open

fix(deps): upgrade shescape to 2.1.10#328
snyk-io[bot] wants to merge 1 commit intomainfrom
snyk-fix-f2bbc071fa84fa3882ba2e7740e1a341

Conversation

@snyk-io
Copy link
Copy Markdown

@snyk-io snyk-io bot commented Mar 13, 2026

snyk-top-banner

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

Snyk changed the following file(s):

  • package.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
medium severity Improper Encoding or Escaping of Output
SNYK-JS-SHESCAPE-15467452
  631  

Breaking Change Risk

Merge Risk: High

Notice: This assessment is enhanced by AI.


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 Encoding or Escaping of Output

@snyk-io snyk-io bot requested review from a team as code owners March 13, 2026 04:07
@snyk-io
Copy link
Copy Markdown
Author

snyk-io bot commented Mar 13, 2026

Merge Risk: High

The upgrade from shescape v1 to v2 is a major version change with significant breaking changes. The library has been refactored from a function-based to a class-based API.

Key Breaking Changes:

  • API Redesign: The primary export is now the Shescape class, which must be instantiated. The previous standalone escape and quote functions are now methods of this class. This requires refactoring all usage of the library.
  • Instantiation: You must now create an instance of the Shescape class to access its methods (e.g., new Shescape().escape(arg)).
  • Module System: The library has transitioned to ES Modules (ESM). CommonJS require() statements should be updated to import statements.

Recommendation:
Code must be refactored to use the new class-based API. For example, require('shescape').escape(arg) must be changed to import { Shescape } from 'shescape'; const shescape = new Shescape(); shescape.escape(arg);.

Source: Package documentation

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

@snyk-io
Copy link
Copy Markdown
Author

snyk-io bot commented Mar 13, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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.

0 participants