Skip to content
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-2018-19838 (Medium) detected in node-sass-v4.12.0 #58

Open
mend-bolt-for-github bot opened this issue May 30, 2019 · 0 comments
Open

CVE-2018-19838 (Medium) detected in node-sass-v4.12.0 #58

mend-bolt-for-github bot opened this issue May 30, 2019 · 0 comments
Labels
security vulnerability Security vulnerability detected by WhiteSource

Comments

@mend-bolt-for-github
Copy link
Contributor

CVE-2018-19838 - Medium Severity Vulnerability

Vulnerable Library - node-sassv4.12.0

🌈 Node.js bindings to libsass

Library home page: https://github.com/sass/node-sass.git

Library Source Files (121)

* The source files were matched to this source library based on a best effort match. Source libraries are selected from a list of probable public libraries.

  • /spa-deploy/node_modules/node-sass/src/libsass/src/error_handling.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/output.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/output.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/check_nesting.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/sass_values.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/check_nesting.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/bind.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/test/test_node.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/constants.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/eval.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/plugins.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/include/sass/base.h
  • /spa-deploy/node_modules/node-sass/src/libsass/src/prelexer.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/subset_map.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/extend.cpp
  • /spa-deploy/node_modules/node-sass/src/custom_importer_bridge.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/contrib/plugin.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/lexer.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/sass_util.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/test/test_superselector.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/cencode.c
  • /spa-deploy/node_modules/node-sass/src/libsass/src/ast_fwd_decl.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/utf8_string.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/file.cpp
  • /spa-deploy/node_modules/node-sass/src/callback_bridge.h
  • /spa-deploy/node_modules/node-sass/src/libsass/src/subset_map.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/include/sass2scss.h
  • /spa-deploy/node_modules/node-sass/src/libsass/src/sass_functions.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/emitter.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/environment.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/ast_def_macros.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/paths.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/expand.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/listize.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/test/test_unification.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/source_map.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/inspect.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/source_map.hpp
  • /spa-deploy/node_modules/node-sass/src/sass_types/list.h
  • /spa-deploy/node_modules/node-sass/src/libsass/src/sass_functions.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/json.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/sass_util.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/position.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/listize.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/error_handling.hpp
  • /spa-deploy/node_modules/node-sass/src/sass_types/string.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/eval.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/environment.hpp
  • /spa-deploy/node_modules/node-sass/src/sass_types/boolean.h
  • /spa-deploy/node_modules/node-sass/src/libsass/src/emitter.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/extend.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/lexer.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/functions.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/debugger.hpp
  • /spa-deploy/node_modules/node-sass/src/sass_types/factory.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/prelexer.cpp
  • /spa-deploy/node_modules/node-sass/src/sass_types/color.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/operation.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/ast.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/sass.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/constants.hpp
  • /spa-deploy/node_modules/node-sass/src/sass_types/boolean.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/context.hpp
  • /spa-deploy/node_modules/node-sass/src/sass_types/value.h
  • /spa-deploy/node_modules/node-sass/src/libsass/src/units.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/cssize.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/parser.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/functions.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/position.hpp
  • /spa-deploy/node_modules/node-sass/src/sass_context_wrapper.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/sass_context.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/node.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/ast_fwd_decl.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/cssize.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/remove_placeholders.cpp
  • /spa-deploy/node_modules/node-sass/src/binding.cpp
  • /spa-deploy/node_modules/node-sass/src/sass_types/list.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/include/sass/functions.h
  • /spa-deploy/node_modules/node-sass/src/custom_function_bridge.cpp
  • /spa-deploy/node_modules/node-sass/src/custom_importer_bridge.h
  • /spa-deploy/node_modules/node-sass/src/libsass/src/color_maps.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/utf8_string.cpp
  • /spa-deploy/node_modules/node-sass/src/sass_types/sass_value_wrapper.h
  • /spa-deploy/node_modules/node-sass/src/libsass/src/ast.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/values.cpp
  • /spa-deploy/node_modules/node-sass/src/sass_context_wrapper.h
  • /spa-deploy/node_modules/node-sass/src/libsass/src/b64/encode.h
  • /spa-deploy/node_modules/node-sass/src/libsass/src/sass.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/base64vlq.cpp
  • /spa-deploy/node_modules/node-sass/src/sass_types/number.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/c99func.c
  • /spa-deploy/node_modules/node-sass/src/libsass/src/node.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/remove_placeholders.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/util.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/memory/SharedPtr.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/backtrace.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/include/sass/values.h
  • /spa-deploy/node_modules/node-sass/src/libsass/test/test_subset_map.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/sass2scss.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/sass_context.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/memory/SharedPtr.cpp
  • /spa-deploy/node_modules/node-sass/src/sass_types/null.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/expand.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/to_value.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/context.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/include/sass/context.h
  • /spa-deploy/node_modules/node-sass/src/libsass/src/to_c.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/sass_values.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/color_maps.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/inspect.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/script/test-leaks.pl
  • /spa-deploy/node_modules/node-sass/src/libsass/src/to_c.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/util.hpp
  • /spa-deploy/node_modules/node-sass/src/sass_types/map.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/file.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/units.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/plugins.hpp
  • /spa-deploy/node_modules/node-sass/src/sass_types/color.h
  • /spa-deploy/node_modules/node-sass/src/libsass/src/to_value.cpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/debug.hpp
  • /spa-deploy/node_modules/node-sass/src/libsass/src/parser.hpp

Vulnerability Details

In LibSass prior to 3.5.5, functions inside ast.cpp for IMPLEMENT_AST_OPERATORS expansion allow attackers to cause a denial-of-service resulting from stack consumption via a crafted sass file, as demonstrated by recursive calls involving clone(), cloneChildren(), and copy().

Publish Date: 2018-12-04

URL: CVE-2018-19838

CVSS 3 Score Details (6.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-19838

Fix Resolution: 3.5.5


Step up your Open Source Security Game with WhiteSource here

@mend-bolt-for-github mend-bolt-for-github bot added the security vulnerability Security vulnerability detected by WhiteSource label May 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security vulnerability Security vulnerability detected by WhiteSource
Projects
None yet
Development

No branches or pull requests

0 participants