fix(security): close the findings of GHSA-442p-gxfg-qxv9

- Restricted Mode git: reads run without a signature verifier, hooks
  (including config-defined ones), an external diff, filters or a lazy
  fetch, also inside submodules; every repository and every git starts
  restricted until the project is trusted.
- project.write and plugin quick fixes cannot reach git's own files under
  any spelling or through links; project.write is a high-risk grant.
- Built-in web server: each served root has its own port and token; a
  file outside the project is served with its folder minus dot names, or
  alone when that folder is the home folder or above it; no fixed port.
- Images, references, Markdown links and language-server links reach no
  network share other than the one already open.
- Marketplace: entries whose id or version no manifest may carry are
  dropped; an index read over the network names nothing on this machine;
  network reads are bounded in size and time.
- Agent replies load remote images on a click; the Markdown preview and
  Mermaid configuration no longer fetch from other hosts.
This commit is contained in:
Fabio Nunes Cerqueira
2026-11-11 22:18:48 +08:00
committed by l0ng-ai
parent 8b179992e8
commit a497178b3e
53 changed files with 3206 additions and 243 deletions
+12
View File
@@ -540,6 +540,18 @@
.markdown :global(img) {
max-width: 100%;
}
.loadImage {
padding: 2px 8px;
border: 1px solid var(--border);
border-radius: var(--radius-small);
background: var(--bg-elev);
color: var(--fg-secondary);
font: inherit;
cursor: pointer;
}
.loadImage:hover {
background: var(--bg-hover);
}
.markdown :global(li:has(> input[type="checkbox"])) {
margin-left: -20px;
}