@theia/filesystem@1.42.1

Theia - FileSystem Extension

  • latest version

    1.74.1

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    2 hours ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @theia/filesystem package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Cross-site Request Forgery (CSRF)

    @theia/filesystem is a Theia - FileSystem Extension

    Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) through the NodeFileUploadService handler in the filesystem backend code. An attacker can overwrite any filesystem path the backend process can write by sending a multipart/form-data request to POST /file-upload with an attacker-controlled absolute uri target and an uploaded file, without a valid connection token. The upload handler accepts the uri field as the destination and moves the temporary upload there with no route-level authentication or workspace confinement. In browser deployments, a cross-origin page can trigger the request with no preflight, letting an unauthenticated attacker write outside the workspace and potentially achieve remote code execution by replacing a startup-executed file.

    How to fix Cross-site Request Forgery (CSRF)?

    Upgrade @theia/filesystem to version 1.74.0 or higher.

    <1.74.0