Zum Hauptinhalt springen
LIVE
CVSS 6.9CVE-2026-137745 | A vulnerability was detected in Free5GC 4.3.0. This affects the function handleAssociationSetupRequest of the file internal/pfcp/association.go of the component SMF. The manipulation results in authentication bypass by spoofing. The attack can be launched remotely. The exploit is now public and may be used. The patch is identified as aab44f6f90f89d8b60c34ee5d1e8af887fd5ddab. It is advisable to implement a patch to correct this issue.CVSS 6.9CVE-2026-137744 | A security vulnerability has been detected in Free5GC up to 4.2.3. Affected by this issue is the function SecurityAssociation.Unmarshal of the file message/payload_securityassociation.go of the component N3IWF IKEv2 Parser. The manipulation leads to denial of service. The attack can be initiated remotely. The exploit has been disclosed publicly and may be used. The identifier of the patch is 41a452a74ef320393d738acd3a0491dcebe2c008. To fix this issue, it isCVSS 5.8CVE-2026-137911 | FFmpeg before 9.1 contains an out-of-bounds read vulnerability in xwd_encode_frame() in libavcodec/xwdenc.c that copies each RGB24 or BGR24 row using the padded XWD scanline size instead of the pixel row size. Attackers who control the width of video encoded to XWD by an application that supplies tightly packed frames can make the encoder read past the frame buffer, crashing the application or leaking heap contents into the output image.CVSS 5.8CVE-2026-137910 | FFmpeg before 9.1 contains an out-of-bounds read vulnerability in pcx_encode_frame() in libavcodec/pcxenc.c that rounds each row up to an even number of bytes and run-length encodes that many bytes from the input frame. Attackers who control the width of images encoded to PCX by an application that supplies tightly packed frames can make the encoder read past the end of the frame buffer, crashing the application or leaking heap contents into the output imageCVSS 5.7CVE-2026-137909 | FFmpeg before 9.1 contains a NULL pointer dereference vulnerability in xsub_encode() in libavcodec/xsubenc.c that only warns when a subtitle has no rectangles and then dereferences rects[0]. Attackers can supply crafted PGS or DVB subtitles that decode to empty subtitle events, crashing applications that pass decoded subtitles directly to the XSUB encoder.CVSS 5.7CVE-2026-137908 | FFmpeg 7.1 before 9.1 contains a memory leak vulnerability in eb_receive_packet() in libavcodec/libsvtav1.c that returns without unreferencing the queued input frame when eb_send_frame() fails. Attackers can supply crafted video in which some frames lack Dolby Vision metadata to an SVT-AV1 encode with Dolby Vision RPU coding enabled, leaking each rejected frame's buffers or aborting in av_frame_move_ref() in builds with assertions enabled.CVSS 8.5CVE-2026-137907 | FFmpeg 3.0 before 8.1.3 contains a heap buffer overflow vulnerability in libavfilter/vf_boxblur.c because query_formats() accepts pixel formats deeper than 16 bits while the blur temporary buffers hold only 2 bytes per pixel. Attackers can supply crafted 32-bit float media, such as PFM or OpenEXR images, that when processed by the boxblur filter overflow the temporary buffers, crashing applications or possibly executing code.CVSS 6.8CVE-2026-137906 | FFmpeg 5.0 before 8.1.3 contains a NULL pointer dereference vulnerability in the IMF demuxer in libavformat/imfdec.c because open_virtual_track() accepts a virtual track with no resources. Attackers can supply a crafted IMF Composition Playlist whose virtual track lists no resources, causing set_context_streams_from_tracks() to dereference a NULL resource array and crash the process.
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: Secure Programming

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:

💬 Community discussion & comments

🌐 Join the main chat

Start the discussion in the Social Chat broadcast stream or submit an expert contribution via the supplement form above.

Community Rating &amp; Social Proof
⭐ Reader Rating
–
Ø / 5.0
No reader ratings yet
Was this article helpful?
0
Submit your rating
Detailed rating (optional)
Content & Quality
Source & Credibility
Freshness
Security Briefing Free · 1-Click Unsubscribe

Intelligence Digest — free

The top security news daily · unsubscribe anytime

Related story clusters & sources (vector AI)

2 Cluster
2 sources
Barclays’ US banking arm confirms data breach
IT Security News 2 hours ago
1 more source
Similar posts
🔍 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...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

💬 Loading comments…
Pull to refresh
Widgets & Topics
Loading widgets…
Nächster Beitrag