JavaScript Types Security

Headlines

Enforcing SQL-in-JS query correctness - Screencast shared by Karl Horky demonstrates SafeQL by Eliya Cohen:

safesql demo

Is TypeScript All We Need for Application Security?


5 best practices for React with TypeScript security - Using TypeScript with React provides several advantages in application-building, including the option of simpler React components and better JavaScript XML (JSX) support. However, it also introduces some security challenges that developers need to be aware of…

Friend or Foe? TypeScript Security Fallacies - Check out the video recording of Liran Tal’s talk on Voxxed Days Bucharest 2025.

Friend or Foe? TypeScript Security Fallacies - Liran Tal 2025 talk at Voxxed Days Bucharest


Spot the TypeScript Vulnerability

Haven’t watched my talk above about TypeScript Security? See if you can spot the insecure coding conventions in the following code snippets:

TypeScript powered Express route definition security vulnerability

Ok, that was an easy one. How about this one:

TypeScript for a secure React Server Component but there is a security vulnerability

How about this TypeScript + Zod implementation:

TypeScript + Zod for User Notification Setting yet is safeParse really safe ???

Full working example of a vulnerable Express + TypeScript application demo code on my GitHub: https://github.com/lirantal/vulnerable-demo-express-typescript-2025


📦 On npm

  • StrykerJS - A mutation testing framework for JavaScript. It allows you to test your tests by introducing bugs in your code and checking if your tests catch them.
  • Fast-check - A property-based testing framework for JavaScript and TypeScript. It allows you to write tests that generate random data and check if your code behaves correctly for all possible inputs.

âť— New Security Vulnerabilities


Node.js Security Newsletter

Subscribe to get everything in and around the Node.js security ecosystem, direct to your inbox.

    JavaScript & web security insights, latest security vulnerabilities, hands-on secure code insights, npm ecosystem incidents, Node.js runtime feature updates, Bun and Deno runtime updates, secure coding best practices, malware, malicious packages, and more.