n8n-core is vulnerable to Code Injection
80
High Risk
Affected versions of the n8n-core package are vulnerable to code injection due to a bug in the pdfjs-dist dependency. If PDF.js is used to load a malicious PDF and is configured with isEvalSupported set to true (the default), unrestricted attacker-controlled JavaScript will be executed in the context of the hosting domain. In the fixed version, n8n-core mitigates this by setting isEvalSupported to false.
You are affected if you are using a version that falls within the vulnerable range.
n8n-core is vulnerable to Code Injection in versions 1.37.2 - 1.40.0.
Upgrade the n8n-core library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant