Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Sep 8, 2025

Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.

This PR contains the following updates:

Package Change Age Confidence
vue (source) ^2.7.16 -> ^3.0.0-alpha age confidence

GitHub Vulnerability Alerts

CVE-2024-9506

The ReDoS can be exploited through the parseHTML function in the html-parser.ts file. This flaw allows attackers to slow down the application by providing specially crafted input that causes inefficient processing of regular expressions, leading to excessive resource consumption.

To demonstrate this vulnerability, here's an example. In a Vue client-side application, create a new Vue instance with a template string that includes a <script> tag but closes it incorrectly with something like </textarea>.

new Vue({
  el: '#app',
  template: '
    <div>
      Hello, world!
      <script>${'<'.repeat(1000000)}</textarea>
    </div>'
});

Next, set up a basic HTML page (e.g., index.html) to load this JavaScript and mount the Vue instance:

<!DOCTYPE html>
<html>
<head>
  <title>My first Vue app</title>
</head>
<body>
  <div id=\"app\">Loading...</div>
</body>
</html>

When you visit the app in your browser at http://localhost:3000, you'll notice that the time taken to parse and mount the Vue application increases significantly due to the ReDoS vulnerability, demonstrating how the flaw can affect performance.


ReDoS vulnerability in vue package that is exploitable through inefficient regex evaluation in the parseHTML function

CVE-2024-9506 / GHSA-5j4c-8p2g-v4jx

More information

Details

The ReDoS can be exploited through the parseHTML function in the html-parser.ts file. This flaw allows attackers to slow down the application by providing specially crafted input that causes inefficient processing of regular expressions, leading to excessive resource consumption.

To demonstrate this vulnerability, here's an example. In a Vue client-side application, create a new Vue instance with a template string that includes a <script> tag but closes it incorrectly with something like </textarea>.

new Vue({
  el: '#app',
  template: '
    <div>
      Hello, world!
      <script>${'<'.repeat(1000000)}</textarea>
    </div>'
});

Next, set up a basic HTML page (e.g., index.html) to load this JavaScript and mount the Vue instance:

<!DOCTYPE html>
<html>
<head>
  <title>My first Vue app</title>
</head>
<body>
  <div id=\"app\">Loading...</div>
</body>
</html>

When you visit the app in your browser at http://localhost:3000, you'll notice that the time taken to parse and mount the Vue application increases significantly due to the ReDoS vulnerability, demonstrating how the flaw can affect performance.

Severity

  • CVSS Score: 3.7 / 10 (Low)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Configuration

📅 Schedule: Branch creation - "before 7am every weekday" in timezone Europe/Vienna, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate renovate bot added 3. to review dependencies Pull requests that update a dependency file labels Sep 8, 2025
@renovate renovate bot requested a review from ChristophWurst September 8, 2025 00:26
@renovate
Copy link
Contributor Author

renovate bot commented Sep 8, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @linusborg/vue-simple-portal@0.1.5
npm warn Found: vue@3.5.21
npm warn node_modules/vue
npm warn   vue@"^3.0.0-alpha" from the root project
npm warn   5 more (@nextcloud/webpack-vue-config, vue-demi, vue-demi, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer vue@"^2.6.6" from @linusborg/vue-simple-portal@0.1.5
npm warn node_modules/@linusborg/vue-simple-portal
npm warn   @linusborg/vue-simple-portal@"^0.1.5" from @nextcloud/vue@8.29.1
npm warn   node_modules/@nextcloud/vue
npm warn
npm warn Conflicting peer dependency: vue@2.7.16
npm warn node_modules/vue
npm warn   peer vue@"^2.6.6" from @linusborg/vue-simple-portal@0.1.5
npm warn   node_modules/@linusborg/vue-simple-portal
npm warn     @linusborg/vue-simple-portal@"^0.1.5" from @nextcloud/vue@8.29.1
npm warn     node_modules/@nextcloud/vue
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @nextcloud/vue-select@3.25.1
npm warn Found: vue@3.5.21
npm warn node_modules/vue
npm warn   vue@"^3.0.0-alpha" from the root project
npm warn   5 more (@nextcloud/webpack-vue-config, vue-demi, vue-demi, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer vue@"2.x" from @nextcloud/vue-select@3.25.1
npm warn node_modules/@nextcloud/vue-select
npm warn   @nextcloud/vue-select@"^3.25.1" from @nextcloud/vue@8.29.1
npm warn   node_modules/@nextcloud/vue
npm warn
npm warn Conflicting peer dependency: vue@2.7.16
npm warn node_modules/vue
npm warn   peer vue@"2.x" from @nextcloud/vue-select@3.25.1
npm warn   node_modules/@nextcloud/vue-select
npm warn     @nextcloud/vue-select@"^3.25.1" from @nextcloud/vue@8.29.1
npm warn     node_modules/@nextcloud/vue
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: floating-vue@1.0.0-beta.19
npm warn Found: vue@3.5.21
npm warn node_modules/vue
npm warn   vue@"^3.0.0-alpha" from the root project
npm warn   5 more (@nextcloud/webpack-vue-config, vue-demi, vue-demi, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer vue@"^2.6.10" from floating-vue@1.0.0-beta.19
npm warn node_modules/floating-vue
npm warn   floating-vue@"^1.0.0-beta.19" from @nextcloud/vue@8.29.1
npm warn   node_modules/@nextcloud/vue
npm warn
npm warn Conflicting peer dependency: vue@2.7.16
npm warn node_modules/vue
npm warn   peer vue@"^2.6.10" from floating-vue@1.0.0-beta.19
npm warn   node_modules/floating-vue
npm warn     floating-vue@"^1.0.0-beta.19" from @nextcloud/vue@8.29.1
npm warn     node_modules/@nextcloud/vue
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: vue-frag@1.4.3
npm warn Found: vue@3.5.21
npm warn node_modules/vue
npm warn   vue@"^3.0.0-alpha" from the root project
npm warn   5 more (@nextcloud/webpack-vue-config, vue-demi, vue-demi, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer vue@"^2.6.0" from vue-frag@1.4.3
npm warn node_modules/vue-frag
npm warn   vue-frag@"^1.4.3" from @nextcloud/vue@8.29.1
npm warn   node_modules/@nextcloud/vue
npm warn
npm warn Conflicting peer dependency: vue@2.7.16
npm warn node_modules/vue
npm warn   peer vue@"^2.6.0" from vue-frag@1.4.3
npm warn   node_modules/vue-frag
npm warn     vue-frag@"^1.4.3" from @nextcloud/vue@8.29.1
npm warn     node_modules/@nextcloud/vue
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: vue-resize@1.0.1
npm warn Found: vue@3.5.21
npm warn node_modules/vue
npm warn   vue@"^3.0.0-alpha" from the root project
npm warn   5 more (@nextcloud/webpack-vue-config, vue-demi, vue-demi, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer vue@"^2.6.0" from vue-resize@1.0.1
npm warn node_modules/vue-resize
npm warn   vue-resize@"^1.0.0" from floating-vue@1.0.0-beta.19
npm warn   node_modules/floating-vue
npm warn
npm warn Conflicting peer dependency: vue@2.7.16
npm warn node_modules/vue
npm warn   peer vue@"^2.6.0" from vue-resize@1.0.1
npm warn   node_modules/vue-resize
npm warn     vue-resize@"^1.0.0" from floating-vue@1.0.0-beta.19
npm warn     node_modules/floating-vue
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: vue2-datepicker@3.11.1
npm warn Found: vue@3.5.21
npm warn node_modules/vue
npm warn   vue@"^3.0.0-alpha" from the root project
npm warn   5 more (@nextcloud/webpack-vue-config, vue-demi, vue-demi, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer vue@"^2.5.0" from vue2-datepicker@3.11.1
npm warn node_modules/vue2-datepicker
npm warn   vue2-datepicker@"^3.11.0" from @nextcloud/vue@8.29.1
npm warn   node_modules/@nextcloud/vue
npm warn
npm warn Conflicting peer dependency: vue@2.7.16
npm warn node_modules/vue
npm warn   peer vue@"^2.5.0" from vue2-datepicker@3.11.1
npm warn   node_modules/vue2-datepicker
npm warn     vue2-datepicker@"^3.11.0" from @nextcloud/vue@8.29.1
npm warn     node_modules/@nextcloud/vue
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: vuex@3.6.2
npm error Found: vue@3.5.21
npm error node_modules/vue
npm error   vue@"^3.0.0-alpha" from the root project
npm error   peer vue@"^2.7.16 || ^3.5.13" from @nextcloud/webpack-vue-config@6.3.0
npm error   node_modules/@nextcloud/webpack-vue-config
npm error     dev @nextcloud/webpack-vue-config@"^6.3.0" from the root project
npm error   4 more (vue-demi, vue-demi, vue-demi, emoji-mart-vue-fast)
npm error
npm error Could not resolve dependency:
npm error peer vue@"^2.0.0" from vuex@3.6.2
npm error node_modules/vuex
npm error   vuex@"^3.6.2" from the root project
npm error
npm error Conflicting peer dependency: vue@2.7.16
npm error node_modules/vue
npm error   peer vue@"^2.0.0" from vuex@3.6.2
npm error   node_modules/vuex
npm error     vuex@"^3.6.2" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /runner/cache/others/npm/_logs/2025-09-17T04_22_11_736Z-eresolve-report.txt
npm error A complete log of this run can be found in: /runner/cache/others/npm/_logs/2025-09-17T04_22_11_736Z-debug-0.log

@renovate renovate bot changed the title fix(deps): bump vue from 2.7.16 to v3 (stable32) fix(deps): bump vue from 2.7.16 to v3 (stable32) - autoclosed Sep 17, 2025
@renovate renovate bot closed this Sep 17, 2025
@renovate renovate bot deleted the renovate/stable32-npm-vue-vulnerability branch September 17, 2025 00:23
@renovate renovate bot changed the title fix(deps): bump vue from 2.7.16 to v3 (stable32) - autoclosed fix(deps): bump vue from 2.7.16 to v3 (stable32) Sep 17, 2025
@renovate renovate bot reopened this Sep 17, 2025
@renovate renovate bot force-pushed the renovate/stable32-npm-vue-vulnerability branch from 556cf60 to 2092485 Compare September 17, 2025 04:22
@renovate
Copy link
Contributor Author

renovate bot commented Sep 17, 2025

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 3.x releases. But if you manually upgrade to 3.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant