Skip to content

[Docs]: list of false-postive CVEs (handlebars, etc) #6332

Open

Description

@alexander-dammeier

What is your suggestion?

We evaluate coder in a high security offline environment. For that, we scanned our workspace image with code-server preinstalled with trivy. There were crititcal CVEs found but we think that they are false positives. Can you please confirm that? This could be added to the docs too.

We found the handlebars CVEs cve-2019-19919, cve-2021-23369, cve-2021-23383 in code-server/lib/code-server-4.13.0/lib/vscode/extensions/handlebars/package.json
We think that Trivy is misled by the name of this component and thinks that it refers to handlebars on npm and not to the vs-code plugin with the same name.

How will this improve the docs?

Security-oriented teams like us will benefit from that because they can forward the false-positive list to their security team to still get the permission to use the software.

Can you confirm that CVEs are false-positives, so that we can forward that to the security team responsible for us?

Activity

  1. code-asher commented on Jul 14, 2023

    @code-asher
    Member

    Ah yup, we have ran into this ourselves before (and with many others in lib/vscode/extensions). Your analysis is spot-on; that is indeed a false positive.

    Adding this to the docs makes sense to me, maybe to SECURITY.md.

  2. mirekphd commented on Aug 15, 2023

    @mirekphd

    Anchore Grype has the same problem with the custom handlebars as Trivy.

    Here's the list of such detections for v4.16.1:

    
    Package                           Version_Installed        Vulnerability_ID     .Severity  Locations_RealPath
    handlebars                        1.0.0                    GHSA-765h-qjxv-5f44  Critical   /usr/lib/code-server/lib/vscode/extensions/handlebars/package.json
    handlebars                        1.0.0                    GHSA-f2jv-r9rf-7988  Critical   /usr/lib/code-server/lib/vscode/extensions/handlebars/package.json
    handlebars                        1.0.0                    GHSA-w457-6q6x-cgp9  Critical   /usr/lib/code-server/lib/vscode/extensions/handlebars/package.json
    
  3. mirekphd commented on Aug 15, 2023

    @mirekphd

    More importantly, critical vulnerabilities are also detected in the vm2 node module used in v4.16.1:

    vm2                               3.9.19                   GHSA-cchq-frgv-rjh5  Critical   /usr/lib/code-server/node_modules/vm2/package.json
    vm2                               3.9.19                   GHSA-g644-9gfx-q4q4  Critical   /usr/lib/code-server/node_modules/vm2/package.json
    

    Due to them the vm2 NPM package will be discontinued. I've opened a separate issue with code-server (#6387) to let us replace this vulnerable package here.

  4. mjschmidt commented on Apr 15, 2024

    @mjschmidt

    Any actual solution to the handlebars issue being perused? I see the other vulnerability was addressed in #6387.

  5. code-asher commented on Apr 15, 2024

    @code-asher
    Member

    The best we can do as far as work in this repo is to document in SECURITY.md that anything in the format lib/vscode/extensions/$name/package.json is a false positive. Unless Trivy becomes smarter about how it detects npm packages, I think it will always appear in security scans.

    For folks using Trivy, maybe we can recommend something like trivy --skip-files "lib/vscode/extensions/*/package.json"? I have not tested that flag but it seems like it should work based on the documentation. https://aquasecurity.github.io/trivy/v0.50/docs/configuration/skipping/

  6. code-asher commented on Apr 15, 2024

    @code-asher
    Member

    Oh also I just found aquasecurity/trivy#6112

  7. code-asher commented on Nov 26, 2024

    @code-asher
    Member

    A new one came up, restructuredtext

  8. matheusfm commented on Jun 27, 2025

    @matheusfm

    I tried renaming the extensions to avoid name clashes, but it resulted in duplicate extensions in the UI with different identifiers:

    Image

  9. changed the title [-][Docs]: list of false-postive CVEs (critical handlebars CVEs)[/-] [+][Docs]: list of false-postive CVEs (handlebars, etc)[/+] on Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation related

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions