1.2 KiB
1.2 KiB
Vendored: monaco-editor 0.55.1 (min/vs)
- Source: https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.55.1.tgz
- Integrity (npm
dist.integrity, verified before extraction):sha512-jz4x+TJNFHwHtwuV9vA9rMujcZRb0CEilTEwG2rRSpe/A7Jdkuj8xPKttCgOh+v/lkHy7HsZ64oj+q3xoAFl9A== - Vendored: 2026-10-07
- Contents:
package/min/vsonly (the AMD runtime the bot page loads viarequire.config({ paths: { vs: "/vendor/monaco-editor/0.55.1/min/vs" } })). - Why vendored: loading Monaco from cdn.jsdelivr.net meant a CDN compromise
could execute JS in the panel origin. SRI cannot cover the AMD loader's
dynamically injected chunks (
editor.main, workers), so the editor is served same-origin and the CDN path was removed fromscript-src(index.js CSP + tests/csp-hardening.test.js).
Upgrade procedure
- Download the new version's tarball from the npm registry and verify it
against the published
dist.integrityhash. - Extract
package/min/vsintopublic/vendor/monaco-editor/<version>/. - Update the two URLs in
public/js/bot.js(vs:path andloader.jssrc) and this file; update the version inPROVENANCE.md. - The CDN allowlist in the CSP must stay monaco-free — do not re-add it.