We scanned 𝗥𝗲𝗮𝗰𝘁.𝗷𝘀. Used by millions of developers worldwide. 𝟭𝟰𝟯 𝗶𝘀𝘀𝘂𝗲𝘀. 81 of them critical. 🔴 Here's what shocked us: 🔴 XSS vulnerability - user uploaded files reflected without sanitization 🔴 Code injection via eval() - arbitrary code execution possible 🔴 Missing authentication on POST endpoints 🔴 Path traversal - attackers can overwrite system files 🔴 Secrets exposed to client via environment variables This is not some unknown side project. This is the framework your entire frontend probably runs on. We are not saying React is broken. We are saying - no codebase is perfect. Not even the ones you trust the most. That's exactly why code scanning exists. Not to blame. Not to scare. But to know. Because the earlier you find it, the cheaper it is to fix. Full report in first comment 👇 #ReactJS #JavaScript #WebSecurity #CodeReview #Relia #BuildInPublic #OpenSource #Developer
React.js Vulnerabilities: XSS, Code Injection, and More
More Relevant Posts
-
We scanned 𝗥𝗲𝗮𝗰𝘁.𝗷𝘀. Used by millions of developers worldwide. 𝟭𝟰𝟯 𝗶𝘀𝘀𝘂𝗲𝘀. 81 of them critical. 🔴 Here's what shocked us: 🔴 XSS vulnerability - user uploaded files reflected without sanitization 🔴 Code injection via eval() - arbitrary code execution possible 🔴 Missing authentication on POST endpoints 🔴 Path traversal - attackers can overwrite system files 🔴 Secrets exposed to client via environment variables This is not some unknown side project. This is the framework your entire frontend probably runs on. We are not saying React is broken. We are saying - no codebase is perfect. Not even the ones you trust the most. That's exactly why code scanning exists. Not to blame. Not to scare. But to know. Because the earlier you find it, the cheaper it is to fix. Full report in first comment 👇 #ReactJS #JavaScript #WebSecurity #CodeReview #Relia #BuildInPublic #OpenSource #Developer
To view or add a comment, sign in
-
-
🚀 Debugging JWT Auth — A Small Mistake That Cost Me Hours Today I ran into a classic authentication issue while working with NestJS + Next.js — and it’s a good reminder of how small misunderstandings can break the whole flow. 🔍 The Problem After login, I noticed that my localStorage was saving: token: "string" Instead of an actual JWT like: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... ⚠️ Clearly something was off. 🧠 The Root Cause My backend response looked like this: { "success": true, "data": { ...userDetails }, "token": "REAL_JWT_TOKEN" } But in my frontend, I made this mistake: const userData = res.data.data; localStorage.setItem("token", userData.token); // ❌ wrong 👉 The token wasn’t inside data — it was at the root level. ✅ The Fix const userData = res.data.data; const token = res.data.token; localStorage.setItem("token", token); localStorage.setItem("userData", JSON.stringify(userData)); 🔥 Debug smarter, not harder. #WebDevelopment #NestJS #NextJS #JWT #Authentication #Debugging #FullStack #JavaScript
To view or add a comment, sign in
-
most developers don't know array destructuring doesn't create new variables. they think it does. it doesn't. the problem: destructuring assigns to names. those names point to the same values. reassigning one doesn't break the original. confusion happens when you destructure and expect immutability. the rule: destructuring extracts values into new variable names. it doesn't link them. reassignment creates new local bindings. original data stays untouched. this is actually good. it prevents accidental mutations. #javascript #typescript #webdevelopment #buildinpublic #reactjs
To view or add a comment, sign in
-
-
⚡ Part 6 of 10: React performance conversations often start too early. Someone sees a rerender and immediately reaches for memoization. But sometimes the real issue is simpler than that. Bad state shape. Too much work inside render. Unclear data flow. A component tree that grew without much intention. I’m not against optimization. I just think the better starting point is: What actually feels slow? Where’s the bottleneck? What problem are we solving? A lot of React code gets more complicated in the name of performance without actually getting better. Have you ever seen “performance optimization” make a codebase worse? #React #ReactPerformance #FrontendPerformance #JavaScript #TypeScript #SoftwareEngineering #WebPerformance
To view or add a comment, sign in
-
🚨 Most developers use Fetch… but still get it wrong Not because it’s hard— but because of ONE hidden detail 👇 👉 Fetch does NOT fail on HTTP errors So even if your API returns: ❌ 404 ❌ 500 Your code still runs like everything is fine 😬 💡 The fix? Always check res.ok before using the data 🔥 Key takeaway: Fetch = Promise-based NOT = automatic error handling This tiny mistake can break real apps Save this before your next interview 🚀 Have you run into this before? 👇 #JavaScript #Frontend #WebDevelopment #CodingTips #Developers
To view or add a comment, sign in
-
-
React 19 changed the game. Here's what actually matters 👇 We've had React 19 (and 19.2) in the wild for a while now. Here's the TL;DR for devs who are still catching up: ⚡ Actions — RIP to useState boilerplate** Async form submissions, pending states, error handling — all managed automatically. No more 20-line custom hooks just to submit a form. 🪝 3 new hooks you'll use daily → `useActionState` — tracks async action state (pending/success/error) → `useOptimistic` — instant UI updates that roll back if the server disagrees → `useFormStatus` — read form state deep in a component tree. No prop drilling. 🖥️ Server Components are now stable Smaller bundles. Faster loads. Server-side data fetching before the first render. The shift to server-first is here. 👋 Goodbye `forwardRef` Refs are just props now. One less abstraction to teach junior devs. 🏷️ Native `<title>` & `<meta>` support Manage document metadata directly in components. React Helmet is retiring. 🆕 React 19.2 bonus: `<Activity />` Pre-render hidden parts of your app in the background — tabs, modals, next pages — without impacting visible performance. Back-navigations now maintain state out of the box. --- The theme across all of it? Less glue code. More declarative. Server and client working together natively. If you haven't upgraded yet, the compiler alone (fewer re-renders with zero code changes) is worth the effort. What feature are you most excited about? Drop it below 👇 #React #ReactJS #WebDev #Frontend #JavaScript #React19
To view or add a comment, sign in
-
REST API Best Practices Every Dev Needs Building APIs that won't haunt you at 2AM 🔥 Here are 5 patterns that separate good devs from great ones: 1️⃣ Use nouns, not verbs — /users not /getUsers 2️⃣ Version your API — /api/v1/ saves future headaches 3️⃣ Plural resource names — /products not /product 4️⃣ Always HTTPS — never expose APIs over plain HTTP 5️⃣ Rate limit everything — protect from abuse And please… return the right status codes. 400 ≠ 500 🙏 A well-designed API is like a good joke — if you have to explain it, it's not that good. Save this for your next project! 🔖 #RestAPI #WebDevelopment #BackendDev #NodeJS #APIDesign #JavaScript #SoftwareEngineering #TechTips
To view or add a comment, sign in
-
-
🚀 Stop writing 'isLoading' state manually! React 19 is officially changing the game for full-stack development. The era of manual state management for form submissions is ending. With the introduction of Server Actions and the 'useActionState' hook, React now handles the pending state, error handling, and form data updates natively. Why this matters: ✅ Zero boilerplate for loading indicators. ✅ Native integration with HTML forms (Progressive Enhancement). ✅ Server-side logic execution without manual API route orchestration. ✅ Seamless transitions between form states. If you are still using 'useEffect' and 'useState' to handle every single fetch request, it's time to level up your workflow. The focus is shifting from 'how to fetch' to 'how to build' features. Are you moving to React 19 yet? Let's discuss in the comments! 👇 #ReactJS #React19 #WebDev #Frontend #JavaScript #TypeScript #SoftwareEngineering #WebDevelopment #Programming #Coding #FullStack #NextJS #TechTrends #OpenSource #DeveloperExperience #SoftwareArchitecture #ModernWeb
To view or add a comment, sign in
-
-
Stop writing boilerplate API routes! 🛑 React Server Actions are fundamentally changing how we think about the 'Fullstack' boundary. We are moving away from the manual fetch/useEffect cycle and moving toward direct, type-safe server function calls. Why this is a breakthrough for your workflow: ✅ Zero API route overhead: Call functions, not endpoints. ✅ End-to-end Type Safety: TypeScript follows your data from the database to the UI. ✅ Progressive Enhancement: Forms work even before JavaScript hydrates. ✅ Reduced Client Bundle: Server logic stays on the server. Is the traditional REST API approach dying for modern web apps, or is this just making our developer experience smoother? 👇 #ReactJS #NextJS #WebDevelopment #Fullstack #JavaScript #TypeScript #Frontend #Backend #SoftwareEngineering #Programming #WebDev #ReactServerComponents #Coding #TechTrends #ModernWeb #SoftwareArchitecture #Vercel
To view or add a comment, sign in
-
-
🚀 React 19 is officially changing the game for form handling! Say goodbye to manual 'loading' and 'error' states forever. The introduction of the `useActionState` hook (formerly useFormState) is a massive win for DX. It automatically handles the transition from pending states to data return without the need for multiple `useState` or `useEffect` calls. Why this is a breakthrough: ✅ Native Pending State: The `isPending` boolean is built-in. ✅ Error Handling: Easily capture and display server responses. ✅ Progressive Enhancement: Forms work even before the full JS bundle loads. ✅ Cleaner UI Logic: Decouple your business logic from your component state. React is moving closer to the platform, and I am here for it! Are you upgrading to React 19 yet? Let's talk in the comments! 👇 #ReactJS #React19 #WebDev #Frontend #JavaScript #TypeScript #Coding #Programming #SoftwareEngineering #ReactHooks #WebDevelopment #FullStack #ModernWeb #DevCommunity #CleanCode #TechTrends #WebDesign #UIUX
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development