Zum Hauptinhalt springen
LIVE
CVSS 8.7CVE-2026-137509 | Scriban before 7.6.0 contains a resource exhaustion vulnerability that allows template authors to bypass LimitToString by rendering a ScriptObject with many members. Attackers can supply a small template whose ScriptObject.ToString concatenates large member values without length tracking, allocating multi-gigabyte strings and causing memory exhaustion.CVSS 8.7CVE-2026-137510 | Scriban and Scriban.Signed before 7.6.0 allow template authors to bypass the LimitToString string length limit because the string.literal, string.base64_encode, html.escape, html.newline_to_br, html.url_encode, and html.url_escape builtins lack allocation guards. An attacker who can supply a small template can repeatedly call these builtins under the default TemplateContext to force multi-gigabyte allocations and exhaust host memory.CVSS 7.2CVE-2026-137511 | Scriban before 7.6.0 contains a state isolation vulnerability because TemplateContext.Reset() does not clear the Tags dictionary holding array.cycle and math.random state. Attackers supplying templates to a reused context can observe or influence cycle positions and random sequences across renders, and accumulate unbounded cycle entries to exhaust memory.CVSS 8.7CVE-2026-137512 | Scriban before 7.6.0 contains a resource exhaustion vulnerability that allows attackers to bypass LoopLimit by supplying large JSON input to object.from_json. Attackers can pass a flat JSON array or object with hundreds of thousands of elements, which JsonElementExtensions materializes without loop checks, exhausting CPU and memory.CVSS 8.7CVE-2026-137513 | justhtml before 3.17.0 contains a denial of service vulnerability in decode_entities_in_text that allows unauthenticated attackers to crash parsing via non-ASCII Unicode digits in numeric character references. Attackers can submit a payload like &#² in HTML text or attributes, causing an uncaught ValueError from int() that aborts JustHTML() and stream() parsing.CVSS 8.3CVE-2026-137514 | Nodemailer 9.1.0 before 10.4.1 lowercases recipient domains with JavaScript toLowerCase() in _normalizeAddress before UTS-46 mapping, which converts U+1E9E and word-final U+03A3 differently than WHATWG/UTS-46 validators. An unprivileged attacker can submit an address an application's allow-list approves, causing invites or shared links to reach an attacker-registered domain.CVSS 5.3CVE-2026-137515 | AzuraCast before 0.24.1 contains a missing authorization vulnerability in RelaysController::updateAction that allows any authenticated user to modify shared relays and delete other stations' relay associations. Attackers can POST a relay base_url to /internal/relays to rename the relay, wipe StationRemote rows of unmanaged stations, and spoof public now-playing data.CVSS 5.3CVE-2026-137516 | AzuraCast before 0.24.0 contains a missing authorization vulnerability in the StationPublicApi middleware that allows any authenticated user to access non-public stations without per-station permissions. Attackers can change the station_id path parameter to list and download on-demand media, read schedule data, and submit song requests to unauthorized stations.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

Building Distributed Data Processing with Spring Batch 6 + Spring Boot 4

When people first use Spring Batch, they usually start with a simple single-threaded job. That works for small datasets, but once data volume grows, throughput…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 3 Min. Lesezeit
Quelle: dev.to
Rubrik: Secure Programming

When people first use Spring Batch, they usually start with a simple single-threaded job. That works for small datasets, but once data volume grows, throughput becomes the bottleneck.



In this sample project, I implemented a partitioned, multi-threaded Spring Batch pipeline to process sales records in parallel using a master/worker step model.



👉 Code repo: github.com/ykpraveen/spring-batch-sample






Spring Batch



At its core, Spring Batch is built around a few key abstractions:





  • Job: a complete batch workflow


  • Step: one phase of a job


  • ItemReader / ItemProcessor / ItemWriter: read-transform-write pipeline


  • Chunk processing: process N items in one transaction (chunkSize)
    ### Why chunking matters



In chunk-oriented steps, Spring Batch reads and processes items until the chunk size is reached, then writes and commits in one transaction.



So with chunk(500):




  • 500 items are read/processed/written

  • one commit happens per chunk

  • failures can be retried at chunk boundaries



This gives a good balance between:




  • too-small chunks (high transaction overhead)

  • too-large chunks (long transactions, higher rollback cost)






How Spring Batch scales



Spring Batch offers multiple scaling patterns:





  1. Multi-threaded Step: one step, concurrent chunk processing


  2. Partitioning: split input domain into partitions, each handled by a worker step


  3. Remote Chunking / Remote Partitioning: distribute work across processes/nodes



This project uses partitioning + thread pool execution (local distributed-style parallelism).






How this project applies those concepts



Repository: spring-batch-sample



The architecture is:




  • A master step creates partitions (data ranges)

  • A worker step executes each partition

  • A ThreadPoolTaskExecutor runs workers concurrently



Key classes (see src/main/java in repo):





  • BatchConfiguration → job/step orchestration


  • SalesDataPartitioner → partition boundary logic


  • SalesDataProcessor → business transformation logic



Code area: src/main/java






Performance tuning used here



The sample uses:





  • gridSize: 8 (number of partitions)

  • Thread pool: corePoolSize=4, maxPoolSize=8

  • chunk size: 500

  • Sample input: 5000 records






Interpretation





  • gridSize controls parallel work units.

  • Thread pool size controls actual concurrent execution.

  • Effective throughput depends on DB I/O, CPU, and item processing complexity.

  • Increasing partitions beyond available threads can still help load balancing, but with diminishing returns.






Database + metadata angle



Spring Batch is not just a processing framework; it is also a stateful execution framework.



It tracks job/step execution state in metadata, enabling:




  • restartability

  • execution history

  • failure diagnostics



In this sample, PostgreSQL stores both:




  • domain tables (sales_data, processed_data, processing_statistics)

  • batch execution context/metadata managed by Spring Batch



That combination is what makes batch jobs operationally reliable in real systems.









Run locally






1) Start PostgreSQL






docker compose up -d









2) Build and run the app






mvn clean install
mvn spring-boot:run









3) Trigger the batch job






curl -X POST http://localhost:8080/api/batch/start









4) Stop PostgreSQL






docker compose down












Why this pattern is useful in real projects



This design is a strong baseline for:




  • ETL and data migration

  • order/payment reconciliation

  • large-volume reporting prep

  • scheduled backend data shaping



You get:




  • clear separation of orchestration vs business logic

  • predictable transactional boundaries

  • scalable parallel execution

  • operational observability through batch metadata






Next extensions



If you want to evolve this sample toward production-grade scale:




  1. Add retry/skip policies for fault tolerance.

  2. Export job metrics (Micrometer + Prometheus/Grafana).

  3. Make partition strategy adaptive to dataset size.

  4. Move to remote partitioning for multi-node execution.






If you’re learning Spring Batch or designing high-throughput processing pipelines, this pattern is a solid starting point: simple enough to understand, realistic enough to extend.

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 & 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)

1 Cluster
2 sources
Privacy-Focused Personal PDF Answers — 4 Retrieval Gates for Relevance Tuning
DEV Community 22 min. ago
1 more source
Similar posts
🔍 Verwandte News

Auch interessante Nachrichten Building Distributed Data Processing with Spring Batch 6 + Spring Boot 4

Thematisch verwandte Begriffe: Building, Distributed, Data, Processing · 6 Treffer

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