Zum Hauptinhalt springen
LIVE
CVSS 4.8CVE-2026-138092 | A security flaw has been discovered in ggml-org llama.cpp up to 0.8.0. This vulnerability affects the function ggml_roll of the file ggml/src/ggml.c of the component Ggml Tensor Library Roll Operation. The manipulation results in integer overflow. The attack needs to be approached locally. Upgrading to version 0.9.0 is able to resolve this issue. The patch is identified as 0978a6e9022fb9bd6874b86154ee304e81929b9f. It is suggested to upgrade the affected compCVSS 10.0CVE-2026-138091 | A vulnerability was identified in Tenda AC10U 15.03.06.48. This affects the function TendaTelnet of the file /goform/telnet of the component Web UI. The manipulation leads to missing authentication. The attack is possible to be carried out remotely. The exploit is publicly available and might be used.CVSS 10.0CVE-2026-138090 | A vulnerability was determined in Tenda AC10U 15.03.06.48. Affected by this issue is the function ate_ifconfig_set of the file /bin/httpd of the component ATE Service. Executing a manipulation can lead to os command injection. The attack can be executed remotely. The exploit has been publicly disclosed and may be utilized.CVSS 6.9CVE-2026-138089 | A vulnerability was found in Youzan ZanProxy up to 5.1.0. Affected by this vulnerability is the function processRedirect of the file src/core/proxy/middleware/rule.ts of the component Forwarding Rule Redirect. Performing a manipulation of the argument Target results in path traversal. Remote exploitation of the attack is possible. The exploit has been made public and could be used. The project was informed of the problem early through an issue report but hasCVSS 6.9CVE-2026-138088 | A vulnerability has been found in SchneeHertz exhentai-manga-manager up to 1.6.16. Affected is the function mangaToLANraragiArchive of the file index.js of the component LAN Browsing Service. Such manipulation leads to missing authentication. The attack may be launched remotely. The exploit has been disclosed to the public and may be used. The reported GitHub issue was closed with the reason "completed". However, it was not possible to determine the PR or coCVSS 6.9CVE-2026-138087 | A flaw has been found in linhaojun857 aurora up to 07e9524caacf6ceb021f3408e73f900f230d05f2. This impacts the function generalKey of the file aurora-springboot/src/main/resources/application-prod.yml of the component JWT Token Service. This manipulation of the argument secret causes use of hard-coded cryptographic key . The attack may be initiated remotely. The exploit has been published and may be used. This product uses a rolling release model to deliverCVSS 6.9CVE-2026-138086 | A security vulnerability has been detected in wonderunit storyboarder 3.0.0. The impacted element is the function MobileServer of the file src/js/express-app/app.js. The manipulation leads to missing authentication. The attack can be initiated remotely. The exploit has been disclosed publicly and may be used. The project was informed of the problem early through an issue report but has not responded yet.CVSS 5.3CVE-2026-138085 | A weakness has been identified in ThingsBoard up to 4.2.2.7/4.3.1.7/4.4.0. The affected element is the function downloadTestReport of the file application/src/main/java/org/thingsboard/server/controller/DashboardReportController.java of the component Report Service. Executing a manipulation of the argument userId can lead to authorization bypass. It is possible to launch the attack remotely. The exploit has been made available to the public and could be used
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

React Smart Image: The Free React Image Optimization Library Every Developer Should Try

If you've built more than one React app, you've probably written the same image-loading boilerplate more than once. A skeleton here. A lazy-loading…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 4 Min. Lesezeit
Quelle: dev.to
Rubrik: Sichere Programmierung

If you've built more than one React app, you've probably written the same image-loading boilerplate more than once.



A skeleton here. A lazy-loading IntersectionObserver there. A fallback image when the CDN hiccups. A blur placeholder to avoid layout shift. Retry logic for flaky hosts.



Every new React project ends up with the same image-loading code—copied from the last project, tweaked a little, and rarely perfect.






Sound familiar?



@concatstring/react-smart-image brings all of those features together in a single component. Simply swap <img> with <SmartImage> and opt into features like lazy loading, WebP detection, blur placeholders, skeleton loaders, retries, responsive images, and performance metrics—all without changing your existing code.






Getting started only takes a minute:






npm install @concatstring/react-smart-image









Key Features




  • ✅ Drop-in replacement for <img>

  • ✅ Zero runtime dependencies

  • ✅ Fully typed with TypeScript

  • ✅ Responsive image support

  • ✅ Lazy loading

  • ✅ Skeleton loaders

  • ✅ Blur placeholders

  • ✅ Retry with exponential backoff

  • ✅ Error fallbacks

  • ✅ Automatic WebP detection

  • ✅ Image performance metrics

  • ✅ Works with React 18+



🔗 Live Demo






Why We Built React Smart Image



Across multiple React projects, we found ourselves implementing the same image-loading logic repeatedly. Some projects needed lazy loading, while others required blur placeholders, retry logic, responsive images, or skeleton loaders. Maintaining separate implementations for each project quickly became repetitive and difficult to scale.



We wanted a single component that behaves like a normal <img> while providing modern image optimization features only when needed.



That's why we built React Smart Image.



Instead of maintaining multiple utilities across projects, I now use one component everywhere and simply enable the features I need with a few props. The result is cleaner code, a more consistent developer experience, and better image performance out of the box.






Drop-in Replacement



Replacing your existing images is as simple as swapping the component:




import { SmartImage } from '@concatstring/react-smart-image';

<SmartImage src="/photo.jpg" alt="A photo" width={800} height={600} />






className, style, onClick, loading, ref — all forwarded to the real <img>. Nothing new to learn. Enable additional features only when you need them—one prop at a time.






1. Lazy loading that actually waits for the viewport






<SmartImage src="/hero.jpg" alt="Hero" width={1200} height={600} lazy />






Images load 100px before they scroll into view — powered by IntersectionObserver, no scroll listeners, no jank.






2. Skeleton loaders (with dark-mode support)






<SmartImage
src="/avatar.jpg"
alt="User avatar"
width={80}
height={80}
skeleton
skeletonColor="#1f2937"
skeletonHighlightColor="rgba(255,255,255,0.12)"
/>






An animated shimmer while the image loads — themeable to your brand or dark UI.






3. Blur placeholders — manual or automatic



Pass a tiny base64 LQIP the Next.js way:




<SmartImage src="/landscape.jpg" alt="Landscape" width={1200} height={800}
placeholder="blur" blurDataURL="data:image/jpeg;base64,/9j/4AAQ..." />






Or skip the base64 entirely. If your CDN resizes by URL (Cloudinary, imgix, CloudFront…), autoBlur derives the preview for you:




<SmartImage src="/landscape.jpg" alt="Landscape" width={1200} height={800}
placeholder="blur" autoBlur blurWidth={24} />









4. Retry with exponential backoff + fallback



CDNs fail. Handle it declaratively instead of with a tangle of onError handlers:




<SmartImage
src="/flaky-cdn.jpg"
alt="Product"
width={400}
height={300}
retry={3}
retryDelay={500} // 500ms → 1s → 2s
fallback="/placeholder.png"
/>









5. WebP auto-detection



Try the modern format first, fall back automatically if it 404s:




<SmartImage src="/photo.jpg" alt="Product" width={600} height={400} webp />









6. Responsive images — two strategies



The default srcset strategy lets the browser pick (DPR-aware). The viewport strategy always serves the smallest bytes per screen, ignoring device pixel ratio:




<SmartImage
src="/banner.jpg"
alt="Banner"
responsive
strategy="viewport"
sizes={{ mobile: 480, tablet: 768, desktop: 1200 }}
/>































Screen
srcset (default)
viewport
Mobile @1× 480w 480w
Mobile @2× 1200w (DPR-aware) 480w
Desktop 1200w 1200w


Host encodes size in the path instead of ?w=? Point it wherever you want with srcSetBuilder:




srcSetBuilder={(src, width) => src.replace(/(\.\w+)$/, `-${width}$1`)}
// /photo.jpg → /photo-480.jpg









Compose everything



The features are orthogonal — stack them:




<SmartImage
src="/product.jpg"
alt="Product photo"
width={600}
height={600}
lazy
skeleton
webp
fallback="/placeholder.png"
retry={2}
retryDelay={1000}
onLoadInfo={({ loadTime, fromCache }) =>
console.log(`Loaded in ${loadTime}ms (cache: ${fromCache})`)
}
/>






That onLoadInfo callback hands you loadTime, naturalWidth/Height, and a fromCache flag — real performance telemetry per image, for free.






Why not just use next/image?



next/image is great — if you're on Next.js. react-smart-image works in any React app: Vite, CRA, Remix, Gatsby, a plain SPA. No image server required, no framework lock-in, no runtime dependencies. Think of it as a modern, framework-agnostic upgrade to the standard <img> element.






Try it






npm install @concatstring/react-smart-image








If React Smart Image saves you from writing the same image-loading code again, I'd really appreciate a ⭐ on GitHub.



Feedback, feature requests, and bug reports are always welcome. If there's a feature you'd like to see, let me know in the comments or open an issue.



Built by the team at Concatstring.

Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Communitydiscussie & reacties

🌐 Naar de hoofdchat

Start de discussie in de Social Chat broadcaststream of dien hierboven een vakbijdrage in via het aanvulformulier.

Community Rating &amp; Social Proof
⭐ Lezersbeoordeling
–
Ø / 5.0
Nog geen recensies van lezers
Was dit artikel nuttig?
0
Geef uw beoordeling
Detailbeoordeling (optioneel)
Inhoud & Kwaliteit
Bron & Geloofwaardigheid
Actualiteit
Security Briefing Gratis · 1-klik uitschrijven

Intelligence Digest gratis

Dagelijks het belangrijkste beveiligingsnieuws · kan op elk moment worden opgehaald

Verwant Story Cluster & Sources (vector AI)

1 Cluster
2 Bronnen
Samsung zieht eigener App am 31. März 2027 den Stecker
Giga.de 10 uur geleden
1 een andere bron
Soortgelijke bijdragen
🔍 Verwandte News

Auch interessante Nachrichten React Smart Image: The Free React Image Optimization Library Every Developer Should Try

Thematisch verwandte Begriffe: React, Smart, Image, Free · 6 Treffer

Laden...

Bijdragen zijn geladen ...

Laden...

Video's zijn geladen...

Laden...

Bijdragen zijn geladen ...

Laden...

Video's zijn geladen...

Laden...

Bijdragen zijn geladen ...

Laden...

Video's zijn geladen...

Laden...

Bijdragen zijn geladen ...

Laden...

Video's zijn geladen...

💬 Reacties worden geladen…
Trek om te vernieuwen
Widgets & Topics
Loading widgets…
Nächster Beitrag