Stack Overflow Vulnerability in libsass: Critical Security Flaw Detected

libsass Updated 02 Oct 2025

Summary

22/08/2023
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2022-26592: Stack Overflow vulnerability in libsass 3.6.5 via the CompoundSelector::has_real_parent_ref function. Affects libsass versions < 3.6.5+20231221-2. Fixed in 3.6.5+20231221-2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

libsass is a popular C/C++ implementation of the Sass CSS preprocessor, which allows developers to write more maintainable and efficient stylesheets. It is widely used in web development for its ability to compile Sass into standard CSS. However, a critical vulnerability has been identified in libsass versions prior to 3.6.5+20231221-2, which could potentially lead to severe security issues.

Vulnerability Detail

The vulnerability identified as DEBIAN-CVE-2022-26592 is a Stack Overflow issue in libsass version 3.6.5. It originates from the CompoundSelector::has_real_parent_ref function, which can lead to excessive memory consumption and application crashes. This vulnerability can be exploited by attackers to execute arbitrary code or cause denial of service, posing a significant risk to applications relying on this library.

How To Fix

Minimum fixed version

3.6.5+20231221-2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libsass

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds available for this vulnerability. The best course of action is to update to the patched version as soon as possible.

Conclusion

The Stack Overflow vulnerability in libsass poses a significant risk to applications using this library. It is crucial for developers to update to the patched version to protect their applications from potential exploits. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for libsass →

Share this vulnerability

FAQ

libsass is a C/C++ implementation of the Sass CSS preprocessor, enabling developers to write more efficient stylesheets.

The vulnerability allows for a Stack Overflow condition that can lead to application crashes or arbitrary code execution.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Yes, a patched version of libsass (3.6.5+20231221-2) is available and should be installed to mitigate the vulnerability.

While there are no specific workarounds, it is crucial to prioritize updating to the patched version to ensure security.

Related vulnerabilities

Recent vulnerabilities recorded for libsass.

How To Fix

Minimum fixed version

3.6.5+20231221-2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libsass

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback