#javascriptsecurity

JavaScriptBuzzJavaScriptBuzz
2026-03-05

What's wrong with this JavaScript setTimeout zero delay?

What's wrong with this JavaScript setTimeout zero delay not running first. The JavaScript code uses setTimeout 0 to defer but microtasks run first. In JavaScript the order of async work can surprise you.

...

youtube.com/watch?v=BFMnfNFew7I

JavaScriptBuzzJavaScriptBuzz
2026-03-05

Why does this JavaScript gzip handler crash servers?

Why does this JavaScript gzip handler crash servers on small inputs. The JavaScript code inflates compressed data without size limits, so a tiny payload can explode memory. In JavaScript webhooks this becomes a denial of service.

...

youtube.com/watch?v=S9NY8zaRHBg

JavaScriptBuzzJavaScriptBuzz
2026-03-04

Why does this JavaScript Proxy trap missing?

Why does this JavaScript Proxy trap missing for operation. The JavaScript code uses Proxy but does not trap all operations. In JavaScript some property access bypasses the proxy.

...

youtube.com/watch?v=HbLCpZCw4is

JavaScriptBuzzJavaScriptBuzz
2026-03-04

Why does this JavaScript indexOf with NaN always returns -1?

Why does this JavaScript indexOf with NaN always returns -1. The JavaScript code uses indexOf to find a calculation result. In JavaScript indexOf uses strict equality and NaN never equals itself.

...

youtube.com/watch?v=oTpEC9kdh0s

JavaScriptBuzzJavaScriptBuzz
2026-03-03

What's wrong with this JavaScript destructure undefined?

What's wrong with this JavaScript destructure undefined throwing. The JavaScript code destructures a possibly undefined response. In JavaScript destructuring undefined throws and crashes.

...

youtube.com/watch?v=ZW0aq0qtGl4

JavaScriptBuzzJavaScriptBuzz
2026-03-02

What's wrong with this JavaScript Array reverse mutates?

What's wrong with this JavaScript Array reverse mutates in place. The JavaScript code reverses an array and passes it on. In JavaScript reverse mutates the original and corrupts the source.

#...

youtube.com/watch?v=X7VefHo_6zE

JavaScriptBuzzJavaScriptBuzz
2026-03-02

Why does this JavaScript new Date parse wrong?

Why does this JavaScript new Date parse wrong across timezones. The JavaScript code passes a date string without timezone. In JavaScript the parser interprets it as local and shifts hours for users.

...

youtube.com/watch?v=E9PkD1tf3Ys

JavaScriptBuzzJavaScriptBuzz
2026-02-28

What's wrong with this JavaScript spread shallow copy?

What's wrong with this JavaScript spread shallow copy in state update. The JavaScript code uses spread to clone state. In JavaScript nested objects are still shared and mutations leak.

...

youtube.com/watch?v=bF5rykzNd7o

JavaScriptBuzzJavaScriptBuzz
2026-02-28

Why does this JavaScript eval in JSON parse?

Why does this JavaScript eval in JSON parse allowing code execution. The JavaScript code uses eval or Function to parse JSON. In JavaScript this executes any code in the string.

...

youtube.com/watch?v=UElA2CMyiHE

JavaScriptBuzzJavaScriptBuzz
2026-02-26

Why does this JavaScript replace only change the first match?

Why does this JavaScript replace only change the first match in a sanitizer. The JavaScript code uses replace without the global flag. In JavaScript only the first occurrence is replaced and the rest remain.

#...

youtube.com/watch?v=vMlsgwqya2M

JavaScriptBuzzJavaScriptBuzz
2026-02-25

What's wrong with this JavaScript worker ack?

What's wrong with this JavaScript worker ack in a queue. The JavaScript code acknowledges the message before the database commit, so failures lose data permanently. In JavaScript pipelines this creates silent gaps.

...

youtube.com/watch?v=AyZEdp_zsnw

JavaScriptBuzzJavaScriptBuzz
2026-02-23

What's wrong with this JavaScript URL fetch?

What's wrong with this JavaScript URL fetch in production. The JavaScript code fetches a user supplied URL without validation, enabling SSRF to internal services. In JavaScript backends this exposes secrets.

...

youtube.com/watch?v=Lu2sqCRQtuQ

JavaScriptBuzzJavaScriptBuzz
2026-02-22

Why does this JavaScript filter return wrong type?

Why does this JavaScript filter return wrong type in a search. The JavaScript code uses filter and assumes results match the predicate. In JavaScript sparse arrays or holes can produce unexpected length.

...

youtube.com/watch?v=X-FqnuTNaCQ

JavaScriptBuzzJavaScriptBuzz
2026-02-22

Why does this JavaScript addEventListener stacking?

Why does this JavaScript addEventListener stacking without remove. The JavaScript code adds a listener on each render. In JavaScript listeners accumulate and fire multiple times.

...

youtube.com/watch?v=i7_C1bcDzrU

JavaScriptBuzzJavaScriptBuzz
2026-02-21

Why does this JavaScript reduce crash on empty array?

Why does this JavaScript reduce crash on empty array in aggregation. The JavaScript code calls reduce without an initial value. In JavaScript when the array is empty it throws. In JavaScript dashboards empty states break the app.

...

youtube.com/watch?v=N9PasMctYp4

JavaScriptBuzzJavaScriptBuzz
2026-02-20

What's wrong with this JavaScript Object freeze shallow?

What's wrong with this JavaScript Object freeze shallow in config. The JavaScript code freezes the top level object. In JavaScript nested objects stay mutable and can still be modified.

...

youtube.com/watch?v=sr0pfYxf_1Y

JavaScriptBuzzJavaScriptBuzz
2026-02-20

Why does this JavaScript money math drift?

Why does this JavaScript money math drift in billing. The JavaScript code uses floats for currency and rounds at the end, which creates silent cents errors. In JavaScript finance systems this causes reconciliation mismatches.

...

youtube.com/watch?v=PE0ICjWQ_Lw

JavaScriptBuzzJavaScriptBuzz
2026-02-20

What's wrong with this JavaScript regex?

What's wrong with this JavaScript regex in validation. The JavaScript pattern has catastrophic backtracking, so a single input can hang a worker. In JavaScript APIs this becomes a denial of service.

...

youtube.com/watch?v=B-KEgFSOvfM

JavaScriptBuzzJavaScriptBuzz
2026-02-19

Why does this JavaScript Symbol not equal itself?

Why does this JavaScript Symbol not equal itself in a cache. The JavaScript code uses Symbol as a unique key. In JavaScript Symbol creates new identity every call so the same key never matches.

...

youtube.com/watch?v=qvgqsSzfeCg

JavaScriptBuzzJavaScriptBuzz
2026-02-17

Why does this JavaScript innerHTML XSS?

Why does this JavaScript innerHTML XSS from user content. The JavaScript code assigns user input to innerHTML. In JavaScript this executes any script in the string.

...

youtube.com/watch?v=aFzeh_Cc33E

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst