> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# java-objectinputstream-request-deserialization

> Java ObjectInputStream.readObject consumes a servlet request body.

## What it flags

Matches an explicitly imported servlet request parameter with an object stream opened on that request and read by the next statement. Local fixture streams and lookalikes stay quiet. A stream with intervening configuration, such as an object filter, requires broader analysis than this adjacent-use check. Opening a stream alone does not produce a finding.

Review the boundary's supported formats and any explicit class filters. No automatic replacement is offered. [Java ObjectInputFilter](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/io/ObjectInputFilter.html)

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{ "rules": { "java-objectinputstream-request-deserialization": "off" } }
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.