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

yamlinc depend on corrupts npm libs 'colors' #31

Open
unidevel opened this issue Jan 10, 2022 · 3 comments
Open

yamlinc depend on corrupts npm libs 'colors' #31

unidevel opened this issue Jan 10, 2022 · 3 comments

Comments

@unidevel
Copy link

Run yamlinc with mess output after using npm install -g yamlinc to install globally

@novalu
Copy link

novalu commented Jan 10, 2022

The infinite loop introduced in the code will keep running indefinitely; printing the gibberish non-ASCII character sequence endlessly on the console for any applications that use 'colors.'

More info about colors package issue is here: https://www.bleepingcomputer.com/news/security/dev-corrupts-npm-libs-colors-and-faker-breaking-thousands-of-apps/

Temporary solution is to define exact version of package colors, i.e. 1.3.3 or 1.4.0 instead of ^1.3.3 (which install last minor/patch (compromised) version 1.4.2.

@novalu
Copy link

novalu commented Jan 10, 2022

I've pushed pull request which fix this issue: #32

@novalu
Copy link

novalu commented Jan 11, 2022

The compromised versions are deleted from npm.

There is no need to publish a new version of this library. Versions 1.4.1 and 1.4.2 are deleted, so this library uses last working colors package 1.4.0.

More info is here for example: Marak/colors.js#317

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

2 participants