Home Codacy News ESLint compromised: security

ESLint compromised: security

Author

Date

Category

On July 12th, 2018, an issue was created in the eslint-scope repository. After some analysis, it is clear that this is a more significant issue than what was initially considered.

TLDR;

ESLint plugins may have compromised the content of your .npmrc file. If using the affected packages, you must revoke any credentials available through there.

If you’re using  ESLint through Codacy, there is nothing you need to do, as Codacy does not allow tools to access the internet during execution.

The Issue

The attacker published “malicious versions of the eslint-scope and eslint-config-eslint packages to the npm registry. On installation, the malicious packages downloaded and executed code from pastebin.com which sent the contents of the user’s .npmrc file to the attacker. An .npmrc file typically contains access tokens for publishing to npm.” You can see more details on the postmortem.

ESLint Affected Packages

  • eslint-scope@3.7
  • eslint-config-eslint@5.0

Resources

Wrapping it up

If you made it this far, why not thank Andrej Mihajlov for his finding. You can also follow him on Twitter.


Codacy is used by thousands of developers to analyze billions of lines of code every day!

Getting started is easy – and free! Just use your  GitHub, Bitbucket or Google account to sign up.

GET STARTED

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Subscribe to our newsletter

To be updated with all the latest news, offers and special announcements.

Recent posts

Pulse end of Open Beta and new pricing

I'm excited to announce we’re introducing a new pricing model to our Pulse product. Since we launched Pulse, we’ve...

Accelerate book summary and key findings

I find myself explaining the value of adopting outcome-based engineering analytics every day, using the Accelerate book as the definitive reference...

The 4 main types of technical debt

Technical debt is a common metaphor for software's accumulated backlog (like bugs, missing documentation, and legacy code). It can happen because...

Introducing Codacy Labs: our experimental playground

Listening to customers is what makes your product thrive. At Codacy, we deeply care about our customer's needs and that's why we...

May Product Update 🚀

Hi there 👋, Here are a few product updates from May that we've been working on to...