monaco-editor icon indicating copy to clipboard operation
monaco-editor copied to clipboard

[Bug] Security vulnerability in [email protected] (used by VSCode & Monaco)

Open aleixsuau opened this issue 1 year ago • 4 comments

Reproducible in vscode.dev or in VS Code Desktop?

  • [X] Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

Monaco Editor Playground Link

No response

Monaco Editor Playground Code

No response

Reproduction Steps

No response

Actual (Problematic) Behavior

Our OWASP scan detected an issue in [email protected] CVE-2024-45801 which seems to be used by the Monaco editor (VSCode): https://github.com/microsoft/vscode/blob/main/src/vs/base/browser/dompurify/dompurify.js

Please update to [email protected] to get rid of that vulnerability.

Thanks

Expected Behavior

There should be no vulnerability issues.

Additional Context

No response

aleixsuau avatar Sep 20 '24 09:09 aleixsuau

It looks like DOMPurify was bumped here https://github.com/microsoft/vscode/pull/228773/files but not yet vendored like in this other DOMPurify bump PR - https://github.com/microsoft/vscode/pull/189368/files

jshawl avatar Sep 20 '24 16:09 jshawl

@rzhao271 Just wanted to at you as you merged in the version update for DOMPurify

jasonparallel avatar Sep 24 '24 00:09 jasonparallel

Looks like one more CVE is found now CVE-2024-47875, but still updating to [email protected] should solve an issue

PavPav avatar Oct 14 '24 06:10 PavPav

This pr will bump to the currently latest release (3.1.7): https://github.com/microsoft/vscode/pull/230250

mjbvz avatar Oct 14 '24 15:10 mjbvz

Closing as upstream change in VS Code has been merged

mjbvz avatar Oct 21 '24 23:10 mjbvz

@mjbvz thank you for fixing the issue 👍.

Do you happen to know when 0.53 monaco-editor version will be released with the vulnerability fix?

acherkashin avatar Oct 30 '24 14:10 acherkashin

Hi, when do you plan to release the fix in the Monaco-editor?

Thanks

aleixsuau avatar Nov 22 '24 14:11 aleixsuau

@aleixsuau it is tracked in https://github.com/microsoft/monaco-editor/issues/4738, no idea when it will be released unfortunately

acherkashin avatar Nov 24 '24 07:11 acherkashin