Skip to content

Race condition in FileStorage leads to data loss #98

@nezumi0627

Description

@nezumi0627

The FileStorage implementation in packages/linejs/base/storage/file.ts is vulnerable to race conditions. The set and delete methods perform asynchronous read-modify-write operations without any locking mechanism. Concurrent calls (e.g., during rapid token refreshes) can cause data to be overwritten by stale state, leading to loss of auth sessions or other critical data.

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