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-2021-23358 - medium detected in underscore #213

Closed
github-actions bot opened this issue May 11, 2022 · 1 comment
Closed

CVE-2021-23358 - medium detected in underscore #213

github-actions bot opened this issue May 11, 2022 · 1 comment

Comments

@github-actions
Copy link

Package Name: underscore
Package Version: ['1.9.1']
Package Manager: npm
Target File: package.json
Severity Level: medium
Snyk ID: SNYK-JS-UNDERSCORE-1080984
Snyk CVE: CVE-2021-23358
Snyk CWE: CWE-94
Link to issue in Snyk: https://app.snyk.io/org/rhicksiii91/project/93ddcac2-4d2c-43e7-b383-b47b30846d11

Snyk Description: ## Overview
underscore is a JavaScript's functional programming helper library.

Affected versions of this package are vulnerable to Arbitrary Code Injection via the template function, particularly when the variable option is taken from _.templateSettings as it is not sanitized.

PoC

const _ = require('underscore');
_.templateSettings.variable = "a = this.process.mainModule.require('child_process').execSync('touch HELLO')";
const t = _.template("")();

Remediation

Upgrade underscore to version 1.13.0-2, 1.12.1 or higher.

References


@github-actions github-actions bot closed this as completed Aug 1, 2022
@github-actions
Copy link
Author

github-actions bot commented Aug 1, 2022

auto-closed by snyk_scm_issues_to_gh_issues
reason: snyk project no longer exists

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

No branches or pull requests

0 participants