Skip to content

[Snyk] Security upgrade node-sass from 4.14.1 to 9.0.0 - #108

Open
hubert-stefaniak wants to merge 1 commit into
masterfrom
snyk-fix-e0f8d3b461e92a5c7799219f60724a68
Open

[Snyk] Security upgrade node-sass from 4.14.1 to 9.0.0#108
hubert-stefaniak wants to merge 1 commit into
masterfrom
snyk-fix-e0f8d3b461e92a5c7799219f60724a68

Conversation

@hubert-stefaniak

Copy link
Copy Markdown

snyk-top-banner

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

Snyk changed the following file(s):

  • package.json
  • yarn.lock

Note for zero-installs users

If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
medium severity Uncaught Exception
SNYK-JS-QS-19432019
  738  

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:

🦉 Uncaught Exception

@hubert-stefaniak

Copy link
Copy Markdown
Author

Merge Risk: High

The upgrade from node-sass v4 to v9 is a major jump across several breaking versions. Most importantly, the node-sass package itself is deprecated and no longer receives feature updates. The official recommendation is to migrate to its successor, sass (Dart Sass).

Key Breaking Changes:

  • Deprecation: node-sass and the underlying LibSass library are deprecated. They will not support new Sass or CSS features. The package's GitHub repository has been archived, and the npm package is marked as deprecated.
  • Node.js Version Support: This is the most significant technical breaking change. node-sass versions are tightly coupled to specific Node.js versions. The target version 9.0.0 drops support for Node.js 14 and requires Node.js 16 or newer. The starting version 4.14.1 was compatible with Node.js 14.
  • Security Default: Version 8.0.0 changed the default setting for rejectUnauthorized to true when fetching remote files, which may break builds that import from sources with invalid SSL certificates.

Recommendation:

Instead of upgrading node-sass, you should plan a migration to sass. This is a high-impact change that requires replacing the package entirely.

  1. Uninstall node-sass: npm uninstall node-sass
  2. Install sass: npm install --save-dev sass

While sass is designed as a replacement, you may need to update build scripts, as some command-line flags have changed (e.g., --output-style compressed becomes --style=compressed).

Source: GitHub Releases, Sass Blog

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

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