Skip to content

Middleware vulnerability: Unhandled MontageError bypasses CORS headers #445

@ayushshukla1807

Description

@ayushshukla1807

There's a leaky abstraction in mw/__init__.py.

If the backend triggers an explicit MontageError early enough in the cycle, it bypasses the MessageMiddleware serialization entirely. Because it skips standard JSON packing, the actual CORSMiddleware never injects headers.

So instead of the Vue frontend getting a clean 400 Bad Request with an error message, it gets slammed by the browser with a CORS block.

Metadata

Metadata

Assignees

No one assigned

    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