Install
terser
JavaScript parser, mangler/compressor and beautifier toolkit for ES6+
5.51.4Latest, 20 Nov 2026
501MDownloads, last month
0Advisories on the latest
2Advisories, all versions
BSD-2-ClauseLicence
9.4KStars
5.8/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| Moderate | Terser: Input sourcemap sourcesContent leaks, revealing input source code CVE-2026-140012 | Fixed in 4.8.2, 5.51.3 | 1 Dec 2026 |
| High | Terser insecure use of regular expressions leads to ReDoS CVE-2022-25858 | Fixed in 4.8.1, 5.14.2 | 16 Jul 2022 |
In the news
- Minifying one JS file from 17.8 KB to 7.8 KB: what Terser actually removed dev.to, 2 Dec 2026
- Terser and UglifyJS mangling is a build step, not a security control dev.to, 15 Nov 2026
- Do popular PyPI packages write longer summaries? No: they write terser one-liners but much longer READMEs dev.to, 23 Oct 2026
- ‘Follow the damn law’: Washington leaders have terse words for Trump goskagit.com, 15 Feb 2025
- Regular this, Arrow this (Tersely bulleted) dev.to, 22 Jan 2025
On Hacker News
- C++: terser (shorter) lambda == SHORTY (ab-use?) 67 points, 20 comments, 9 Apr 2025
Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.