TypeScript, Security, and Type Juggling with Ariel Shulman & Liran Tal - JSJ 679 episode artwork

EPISODE · May 29, 2025 · 1H 32M

TypeScript, Security, and Type Juggling with Ariel Shulman & Liran Tal - JSJ 679

from JavaScript Jabber · host Charles M Wood

In this episode, we dove headfirst into the swirling waters of TypeScript, its real-world use cases, and where it starts to fall short—especially when it comes to security. Joining us from sunny Tel Aviv (and a slightly cooler Portland), we had the brilliant Ariel Shulman and security advocate Liran Tal bring the heat on everything from type safety to runtime vulnerabilities.We started off with a friendly debate: Has TypeScript really taken over the world? Our verdict? Pretty much. Whether it’s starter projects, enterprise codebases, or AI-generated snippets, TypeScript has become the de facto standard. But as we quickly found out, that doesn’t mean it’s perfect.Key Takeaways:-TypeScript ≠ SecurityWe tend to trust TypeScript a bit too much. It’s a build-time tool, not a runtime enforcer. As Liran pointed out, “TypeScript is not a security tool,” and treating it like one leads to dangerous assumptions.-Type Juggling is Real (and Sneaky)We explored how something as innocent as using as string on request data can open the door to vulnerabilities like HTTP parameter pollution and prototype pollution. Just because your IDE is happy doesn’t mean your runtime is.-Enter Zod – Runtime Type Checking to the Rescue?Zod got some love for bridging the dev-time/runtime gap by validating data on the fly and inferring TypeScript types. But even Zod isn’t foolproof. For example, unless you're using .strict(), extra fields can sneak past your validations, leading to mass assignment bugs.-Common Developer FallaciesWe discussed the misplaced confidence developers have in things like code coverage and TypeScript alone. One of the big takeaways: defense in depth matters. Just like testing, layering your security practices (like using Zod, type guards, and proper sanitization) is key.-TypeScript Best Practices Are EvolvingFrom discriminated unions to avoiding any, from using Maps over plain objects to prevent prototype pollution—TypeScript developers are adapting. And tools like modern Node.js now support type stripping, which makes working with .ts files at runtime a bit easier.Become a supporter of this podcast: https://www.spreaker.com/podcast/javascript-jabber--6102064/support.

Episode metadata supplied by the publisher feed · Published May 29, 2025

Embed this episode

Ready to play

TypeScript, Security, and Type Juggling with Ariel Shulman & Liran Tal - JSJ 679

0:00 1:32:43

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

BAT Community Podcast BAT Community & Brave Basic Attention Token (BAT) is a revolutionary digital advertising and rewards platform from the inventor of JavaScript and co-founder of Mozilla and Firefox that rewards users in Ethereum-based BAT tokens. Brave is a fast, BAT-powered privacy browser that blocks all 3rd-party ads and trackers by default. Learn more about BAT, Brave and tech with this podcast! Web Development Fundamentals - SOFT6007 Dcom1 Colin Manning Web development technologies such as HTML, CSS, JavaScript and others are at the core of all modern online systems. This module introduces the student to these technologies and provides the student with the skills necessary to develop web sites with dynamic presentation. JS Party: JavaScript, CSS, Web Development Changelog Media Your weekly celebration of JavaScript and the web. Current panelists: Jerod Santo, Kevin Ball (KBall), Nick Nisi, Chris Hiller, Amal Hussein & Amy Dutton.Past panelists: Suz Hinton, Feross Aboukhadijeh, Amelia Wattenberger, Divya Sasidharan, Alex Sexton, Rachel White, Emma Bostian, Ali Spittel, Mikeal Rogers & Jessica Sachs.We talk about the web platform (Chrome, Safari, Edge, Firefox, Brave, etc), front-end frameworks (ReactJS, SolidJS, Svelte, VueJS, AngularJS, etc), JavaScript and TypeScript runtimes (Node, Deno, Bun), web animation, SVG, TailwindCSS, robotics, IoT, and much more. If JavaScript and/or the web touch your life, this show’s for you.Some people search for JSParty and can't find the show, so now the string JSParty is in our description too. CodeWinds - Leading edge web developer news and training | javascript / React.js / Node.js / HTML5 / web development - Jeff Barczewski Jeff Barczewski The CodeWinds podcast is designed to help you keep up with the latest web developer news and techniques.Learn about the new developments in javascript, React.js, Node.js, HTML5 and other exciting web developer and mobile technologies.Listen to interviews and reviews of the latest and most promising new libraries, modules, and tools. Learn what the professional developers use to build their web and mobile web applications. Using the latest techniques and best practices you can continue to sharpen your skills.Each week Jeff Barczewski, a seasoned web developer and trainer will share his latest insights and will interview leaders in the web and mobile development community.Become your best, follow CodeWinds.

Frequently Asked Questions

How long is this episode of JavaScript Jabber?

This episode is 1 hour and 32 minutes long.

When was this JavaScript Jabber episode published?

This episode was published on May 29, 2025.

Is there a transcript available for this episode?

Yes, a full transcript is available for this episode. You can read the complete transcript on the episode page.

Can I download this JavaScript Jabber episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!