-
Notifications
You must be signed in to change notification settings - Fork 885
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
CVE-2022-43358 (High) detected in sassv0.4.7 - autoclosed #4877
Comments
Issue understandingBased on this issue from libsass sass/libsass#3178, the vulnerability comes from an unchecked recursive call from the following code leading to a stack overflow. If an attacker can craft input in a way to trigger this recursion, they could potentially cause the application to crash, making this a potential Denial-of-Service (DoS) vector.
For OpenSearch Dashboards, the primary concern is whether an attacker can control or inject malicious SCSS content into our application. Here is how node-sass is used in our app: Webpack Configurations
Gruntfile
How it impacts OpenSearch DashboardsAs we mentioned earlier, For OpenSearch Dashboards, the primary concern is whether an attacker can control or inject malicious SCSS content into our application. So let's shift the focus to how an attacker could inject some scss content into OpenSearch Dashboards. Personally, I am not aware of any customized themes or extensions that allow users to update or customize themes, which in turn allows them to write or provide SCSS. We do have customize branding but mainly on logo #725 and this customize requires modifications on the config yml file. @joshuarrrr @abbyhu2000 @AMoo-Miki do you guys know any possibilities that an attacker could upload a scss file to cause security issues? I think this might not a security threat for now. But we should check the responses from sass/libsass#3178 and patch accordingly. |
I don't believe OSD uses node-sass at runtime or if it is even included in the release artifacts but I have a vague memory of OUI doing so. |
I have pull the latest release artifacts and have verified that |
We will keep this CVE open until either libsass patches it or we dumped legacy packages. |
@AMoo-Miki do we think it's worth adding to a list of postinstall in case others attempt to install? |
✔️ This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory. |
CVE-2022-43358 - High Severity Vulnerability
Vulnerable Library - sassv0.4.7
Library home page: https://github.com/rstudio/sass.git
Found in HEAD commit: 72ced4d24cec0602ce04cccc9cc88945816a4f12
Found in base branch: main
Vulnerable Source Files (1)
/node_modules/node-sass/src/libsass/src/ast_selectors.cpp
Vulnerability Details
Stack overflow vulnerability in ast_selectors.cpp: in function Sass::ComplexSelector::has_placeholder in libsass:3.6.5-8-g210218, which can be exploited by attackers to cause a denial of service (DoS).
Publish Date: 2023-08-22
URL: CVE-2022-43358
CVSS 3 Score Details (7.5)
Base Score Metrics:
The text was updated successfully, but these errors were encountered: