Home / Companies / Semgrep / Blog / Post Details
Content Deep Dive

Hardcoded secrets, unverified tokens, and other common JWT mistakes

Blog post from Semgrep

Post Details
Company
Date Published
Author
Vasilii Ermilov
Word Count
1,046
Company Posts That Month
1
Language
English
Hacker News Points
-
Post removed?
No
Summary

JWT (JSON Web Token) is an open standard designed to securely transmit information between two parties in a JSON object, although its security relies heavily on proper implementation. A security review of 2,000 npm modules using popular JWT libraries in Node.js revealed several common mistakes such as hardcoded secrets, allowing the 'none' algorithm for signing, improper token validation, and sensitive data exposure. These issues can lead to vulnerabilities, enabling attackers to forge tokens or manipulate data. The review suggests avoiding these pitfalls by separating JWT secrets from code, ensuring proper token validation, and avoiding the inclusion of sensitive information in tokens. Tools like Semgrep can help detect these vulnerabilities, and integrating security scans into CI processes can prevent them from entering the codebase.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Secrets Management 9 286 38 26 +14%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.