Skip to content

extensions-110.3.4

Latest

Choose a tag to compare

@dummdidumm dummdidumm released this 30 Nov 22:07
· 20 commits to master since this release
cd89d16

This is a security release. Updating is highly recommended. The update closes vulnerabilities related to VS Code's Restricted Mode, where workspace-provided code could still run.

This only affects you if you use VS Code's Restricted Mode feature, where you can choose to not trust a workspace, in which case intellisense runs with reduced capabilities, in order to not executed code from it.

Fixes the following vulnerabilities:

  • Prettier: don't resolve workspace config, ignore files or plugins when
    untrusted
  • html.customData: parse the files as JSON instead of require()ing them,
    and don't read them at all when untrusted
  • TypeScript plugin: disable it when untrusted, and don't load the
    project's Svelte compiler while it is disabled (only affects old VS Code versions)
  • SvelteKit file generation: read the project's typescript/package.json as
    JSON instead of require()ing it
  • svelte.language-server.ls-path, runtime, runtime-args and port are now ignored in VS Code Restricted Mode

Additional defence in depth (none of these let a folder run its own code by default; they just stop potentially annoying reads, writes or starts):

  • TypeScript shims: don't copy shim files into the project's node_modules
    when untrusted
  • Don't watch or read svelte.plugin.css.globals files when untrusted, and
    make it a restricted setting.
  • Don't load emmet.extensionsPath directories when untrusted.
  • Don't search for Svelte/Vite config files when config loading is
    disabled.
  • Don't initialize the TypeScript 7 content mapper when untrusted.