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

Update gray-matter dep #75

Open
brenoatgetmomo opened this issue Sep 10, 2024 · 0 comments
Open

Update gray-matter dep #75

brenoatgetmomo opened this issue Sep 10, 2024 · 0 comments

Comments

@brenoatgetmomo
Copy link

js-yaml -> gray-matter -> grunt-assemble

Versions of js-yaml prior to 3.13.1 are vulnerable to Code Injection. The load() function may execute arbitrary code injected through a malicious YAML file. Objects that have toString as key, JavaScript code as value and are used as explicit mapping keys allow attackers to execute the supplied code through the load() function. The safeLoad() function is unaffected.

An example payload is
{ toString: !tag:yaml.org,2002:js/function 'function (){return Date.now()}' } : 1
which returns the object
{
"1553107949161": 1
}
Recommendation

Upgrade to version 3.13.1.

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

1 participant