Skip to content

Vulnerability with dependency vue-template-compiler #1272

@multiestetica

Description

@multiestetica

Hello,

We have the last webpack-encore version installed 4.6.1 and since today we are facing a problem with a package dependency of this.
The package is vue-template-compiler and the message after executing npm audit is:

# npm audit report

vue-template-compiler  >=2.0.0
Severity: moderate
vue-template-compiler vulnerable to client-side Cross-Site Scripting (XSS) - https://github.com/advisories/GHSA-g3ch-rx76-35fx
fix available via `npm audit fix --force`
Will install @symfony/[email protected], which is a breaking change
node_modules/vue-template-compiler
  @symfony/webpack-encore  >=4.0.0
  Depends on vulnerable versions of vue-template-compiler
  node_modules/@symfony/webpack-encore

2 moderate severity vulnerabilities

The solution according to npm is to downgrade the encore package but it doesn't seem a good solution to me.

Our encore configuration is:

    // Enables VUE
    .enableVueLoader(
        () => {},
        {
            runtimeCompilerBuild: false,
            version: 3,
        }
    )

The vulnerability is supposed to affect vue2 and not vue3 and we are using vue3 as shown in the config above.
What can we do here? Is there any way to skip the usage of this package?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions