Google’s G Suite team announced on Wednesday that, for security reasons, Gmail will soon stop allowing users to attach JavaScript (.js) files to emails.
Currently, there are more than two dozen potentially dangerous file types that can’t be used as attachments in Gmail, including .exe, .jar, .sys, .scr, .bat, .com, .vbs and .cmd. Starting on February 13, 2017, .js files will also be added to the list.
Users who attempt to attach these types of files will see a message informing them that the file has been blocked for security reasons. A “Help” link will be provided for people who may want additional information.
For cases where users need to send .js files for legitimate reasons, Google recommends using Drive, Cloud Storage or other file-sharing services.
There have been several campaigns recently where attackers delivered malware by attaching JavaScript files to emails. For instance, the cybercriminals behind the Locky ransomware used JavaScript attachments to drop downloaders, and they later started directly embedding the malicious binary into the JavaScript file.
Ransomware has been increasingly using JavaScript (e.g. Ransom32, RAA) and significant spam campaigns delivering malicious .js files are not uncommon, which is probably why Google has decided to block these types of files.
Google made several security improvements to Gmail in the past year: it enhanced security alerts, it started flagging unauthenticated messages and potentially dangerous URLs, and it disabled support for the RC4 cipher and the SSLv3 protocol.
Related: Google’s DLP for Gmail Adds Optical Character Recognition
Related: Phished Gmail Accounts Immediately Accessed by Hackers

Eduard Kovacs (@EduardKovacs) is a contributing editor at SecurityWeek. He worked as a high school IT teacher for two years before starting a career in journalism as Softpedia’s security news reporter. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.
More from Eduard Kovacs
- High-Severity Privilege Escalation Vulnerability Patched in VMware Workstation
- GoAnywhere MFT Users Warned of Zero-Day Exploit
- UK Car Retailer Arnold Clark Hit by Ransomware
- EV Charging Management System Vulnerabilities Allow Disruption, Energy Theft
- Unpatched Econolite Traffic Controller Vulnerabilities Allow Remote Hacking
- Google Fi Data Breach Reportedly Led to SIM Swapping
- Microsoft’s Verified Publisher Status Abused in Email Theft Campaign
- British Retailer JD Sports Discloses Data Breach Affecting 10 Million Customers
Latest News
- Former Ubiquiti Employee Who Posed as Hacker Pleads Guilty
- Cyber Insights 2023: Venture Capital
- Atlassian Warns of Critical Jira Service Management Vulnerability
- High-Severity Privilege Escalation Vulnerability Patched in VMware Workstation
- Exploitation of Oracle E-Business Suite Vulnerability Starts After PoC Publication
- China Says It’s Looking Into Report of Spy Balloon Over US
- GoAnywhere MFT Users Warned of Zero-Day Exploit
- Google Shells Out $600,000 for OSS-Fuzz Project Integrations
