Skip to content

[Snyk] Upgrade sass-loader from 13.3.2 to 16.0.5 #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

nerdy-tech-com-gitub
Copy link
Owner

@nerdy-tech-com-gitub nerdy-tech-com-gitub commented Jun 14, 2025

snyk-top-banner

Snyk has created this PR to upgrade sass-loader from 13.3.2 to 16.0.5.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

  • The recommended version is 13 versions ahead of your current version.

  • The recommended version was released 4 months ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-CROSSSPAWN-8303230
67 Proof of Concept
high severity Denial of Service (DoS)
SNYK-JS-HTTPPROXYMIDDLEWARE-8229906
67 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-PATHTOREGEXP-8482416
67 Proof of Concept
medium severity Cross-site Scripting (XSS)
SNYK-JS-SERIALIZEJAVASCRIPT-6147607
67 Proof of Concept
medium severity Cross-site Scripting (XSS)
SNYK-JS-COOKIE-8163060
67 No Known Exploit
medium severity Always-Incorrect Control Flow Implementation
SNYK-JS-HTTPPROXYMIDDLEWARE-9691387
67 No Known Exploit
medium severity Improper Check for Unusual or Exceptional Conditions
SNYK-JS-HTTPPROXYMIDDLEWARE-9691389
67 No Known Exploit
medium severity Improper Input Validation
SNYK-JS-NANOID-8492085
67 No Known Exploit
Release notes
Package name: sass-loader
  • 16.0.5 - 2025-02-14

    16.0.5 (2025-02-14)

    Bug Fixes

    • allow to import CSS using @ use with css extension (#1254) (3352e49)
  • 16.0.4 - 2024-12-04

    16.0.4 (2024-12-04)

    Bug Fixes

    • include sources map сontent for modern api by default (#1250) (70a10ff)
  • 16.0.3 - 2024-11-01

    16.0.3 (2024-11-01)

    Bug Fixes

    • modern-compiler: dispose redundant compilers (#1245) (004ed38)
  • 16.0.2 - 2024-09-20

    16.0.2 (2024-09-20)

    Bug Fixes

  • 16.0.1 - 2024-08-19

    16.0.1 (2024-08-19)

    Bug Fixes

    • generate correct sourceMaps for modern-compiler api (#1228) (f862f7a)
  • 16.0.0 - 2024-07-26

    16.0.0 (2024-07-26)

    ⚠ BREAKING CHANGES

    • use modern Sass JS API by default for sass and sass-embedded

    Warning

    The sass options are different for the legacy (before) and modern APIs. Please look at docs how to migrate to the modern options.
    Legacy options - https://sass-lang.com/documentation/js-api/interfaces/legacystringoptions/
    Modern options - https://sass-lang.com/documentation/js-api/interfaces/options/

    To return to the previous logic use:

    module.exports = {
      module: {
        rules: [
          {
            test: /\.s[ac]ss$/i,
            use: [
              "style-loader",
              "css-loader",
              {
                loader: "sass-loader",
                options: {
                  api: "legacy",
                  // Your options
                },
              },
            ],
          },
        ],
      },
    };

    Features

    • use modern Sass JS API by default for sass and sass-embedded (10be1ba)
  • 15.0.0 - 2024-07-23

    ⚠ BREAKING CHANGES

    • prefer sass-embedded over sass by default (#1211)

    Features

    • prefer sass-embedded over sass by default (#1211) (83423ff)
  • 14.2.1 - 2024-04-16

    14.2.1 (2024-04-16)

    Bug Fixes

  • 14.2.0 - 2024-04-11

    14.2.0 (2024-04-11)

    Features

    • added the modern-compiler value for API to reuse compiler process (#1195) (cef40a8)
    • support webpack built-in resolver for modern and modern-compiler API (#1197) (2265b72)

    Notes:

    Using the modern-compiler value for the api option together with sass-embedded reduces compilation time by 5-10 times, especially for projects using large files with a lot of @ import/@ use, for small files the build time reduction will not be significant.

  • 14.1.1 - 2024-02-19

    14.1.1 (2024-02-19)

    Bug Fixes

  • 14.1.0 - 2024-01-30
  • 14.0.0 - 2024-01-15
  • 13.3.3 - 2023-12-25
  • 13.3.2 - 2023-06-09
from sass-loader GitHub release notes

Important

  • Warning: This PR contains a major version upgrade, and may be a breaking change.
  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

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

For more information:

Summary by Sourcery

Upgrade sass-loader dependency to v16.0.5 to address security vulnerabilities and incorporate latest loader improvements.

Bug Fixes:

  • Mitigate multiple security vulnerabilities (ReDoS, DoS, XSS) by updating sass-loader to the patched version

Enhancements:

  • Adopt loader improvements and fixes introduced in the sass-loader v16 release series

Build:

  • Bump sass-loader from ^13.2.2 to ^16.0.5 in package.json

Snyk has created this PR to upgrade sass-loader from 13.3.2 to 16.0.5.

See this package in npm:
sass-loader

See this project in Snyk:
https://app.snyk.io/org/nerds-github/project/aa77fd79-7d27-4ab0-9d41-5dd117531784?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

sourcery-ai bot commented Jun 14, 2025

Reviewer's Guide

Upgrade sass-loader from 13.x to 16.x by updating the version in package.json, which brings in the modern Sass JS API by default (a potential breaking change); ensure your build and loader options remain compatible.

Sequence Diagram: sass-loader v16 Default SASS Compilation

sequenceDiagram
    participant WP as Webpack
    participant SL as "sass-loader v16"
    participant SE as "Sass Engine (Modern API)"

    WP->>+SL: Process SASS file (e.g., styles.scss)
    SL->>+SE: Compile SASS using Modern JS API
    Note over SL,SE: Default behavior in v16+
    SE-->>-SL: Return compiled CSS & source maps
    SL-->>-WP: Provide CSS & source maps to next loader
Loading

Flow Diagram: Handling Potential Breaking Changes in sass-loader v16 Upgrade

graph TD
    A[Start: Upgrade sass-loader to v16.x] --> B{Run Project Build};
    B -- "Build Succeeds" --> C[End: Upgrade Successful];
    B -- "Build Fails / Warnings" --> D{Investigate: Caused by sass-loader API/option changes?};
    D -- "Yes" --> E["Consult sass-loader v16 docs & release notes"];
    E --> F["Update Webpack config for sass-loader:<br/>1. Adapt to Modern API options <br/>OR<br/>2. Revert to Legacy API (e.g., options: { api: 'legacy' })"];
    F --> B;
    D -- "No" --> G[Troubleshoot other build issues];
    G --> C;
Loading

File-Level Changes

Change Details Files
Bump sass-loader dependency to 16.0.5
  • Updated version specifier in package.json from ^13.2.2 to ^16.0.5
glances/outputs/static/package.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

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