@sveltejs/kit@3.0.1

SvelteKit is the fastest way to build Svelte apps

  • latest version

    3.2.0

  • latest non vulnerable version

  • first published

    6 years ago

  • latest version published

    6 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @sveltejs/kit 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
    Incorrect Authorization

    @sveltejs/kit is a SvelteKit framework and CLI

    Affected versions of this package are vulnerable to Incorrect Authorization via query.batch in packages/kit/src/runtime/app/server/remote/query.js, where separate non-exported query.batch functions can be assigned the same generated identifier. When those private functions share a request batch, arguments intended for one function are passed to another, causing unexpected cross-function processing and possible disclosure of function arguments to an unintended handler.

    Note: This is only exploitable when the experimental remote functions flag is enabled and non-exported query.batch functions are used.

    How to fix Incorrect Authorization?

    Upgrade @sveltejs/kit to version 3.1.1 or higher.

    >=2.60.1 <3.1.1
    • H
    Inefficient Algorithmic Complexity

    @sveltejs/kit is a SvelteKit framework and CLI

    Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the convert_formdata and handle_issues functions in the remote form parsing pipeline, which call FormData.getAll() for each unique field name, resulting in O(n²) synchronous work when processing a request with many form entries. An attacker can send a request containing a large number of form entries to block the event loop for an extended period and deny service.

    Note: This is only exploitable when the experimental remote functions flag is enabled and the application utilizes form, query, or command remote functions.

    How to fix Inefficient Algorithmic Complexity?

    Upgrade @sveltejs/kit to version 3.1.1 or higher.

    >=2.42.0 <3.1.1
    • H
    Insertion of Sensitive Information into Log File

    @sveltejs/kit is a SvelteKit framework and CLI

    Affected versions of this package are vulnerable to Insertion of Sensitive Information into Log File via the build-time server-only module guard in packages/kit/src/exports/vite/plugins/guard.js, which did not treat src/params.js as a client entry point despite parameter matchers being able to run in the browser. Server-only modules imported through src/params.js can consequently enter the client bundle, where statically replaced private environment values or other server secrets are exposed to any client that downloads the bundle.

    How to fix Insertion of Sensitive Information into Log File?

    Upgrade @sveltejs/kit to version 3.1.1 or higher.

    >=3.0.0 <3.1.1
    • H
    Uncaught Exception

    @sveltejs/kit is a SvelteKit framework and CLI

    Affected versions of this package are vulnerable to Uncaught Exception via the reroute hook in internal_respond in packages/kit/src/runtime/server/respond.js. When reroute rewrites a malformed percent-encoded pathname into a valid one, the server attempts to decode the original URL pathname in a comparison that throws an unhandled URIError, crashing the adapter-node server process.

    How to fix Uncaught Exception?

    Upgrade @sveltejs/kit to version 2.70.4, 3.1.1 or higher.

    <2.70.4>=3.0.0 <3.1.1