Skip to content

Bug: No JSON body size limit enables memory-exhaustion DoS #356

Open

Description

@Siddh2024

Summary

express.json() is called without a limit option, accepting arbitrarily large JSON payloads. An attacker can send multi-gigabyte payloads to exhaust server memory.

Details

  • File: �pps/public-api/src/app.js
  • �pp.use(express.json()) — no limit parameter
  • Default is 100KB in Express, but without explicit limit it may be misconfigured

Impact

An attacker can easily exhaust server memory by sending large JSON payloads, causing a denial of service.

Suggested Fix

Set an explicit limit: �pp.use(express.json({ limit: '1mb' })).

Activity

  1. yash-pouranik commented on Jul 11, 2026

    @yash-pouranik
    Member

    bhai usi issue par assign hojate new kyu open kiya

  2. yash-pouranik commented on Jul 11, 2026

    @yash-pouranik
    Member

    @Siddh2024 u can strt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions