Page MenuHomePhabricator

Application Security Review Request: Vue Router
Open, Needs TriagePublic

Description

Project Information

  • Name of tool/project: Vue Router
  • Project home page: https://router.vuejs.org/
  • Name of team requesting review: Reader Experience, in collaboration with other teams as part of the Codex Collective
  • Primary contact: @AnneT
  • Project manager (if exists): @HFan-WMF
  • Hypothesis or APP milestone (if exists): DE3.2.7 Introduce custom lists functionality on Desktop & Mobile Web
  • Target date for deployment: October 2026
  • Link to code repository / patchset: https://github.com/vuejs/router
  • Link to scc output for general sizing of codebases (https://github.com/boyter/scc): P96266

Description of the tool/project: The official router for use with Vue.js.

Description of how the tool will be used at WMF: For routing in Vue projects in Mediawiki core, extensions, and skins. Replaces OOjs-Router/mediawiki.router. Note that vue-router is already used in several extensions (and by various tools and off-wiki projects).

Dependencies
No runtime dependencies.

Has this project been reviewed before?
No, but Vue.js versions 2 and 3 have (same maintainers), and as noted above this library is already in use in production extensions.

Working test environment
Vue SCF playground; could test out the vendored version in the PersonalDashboard extension.

Post-deployment
Will ask for @Jdrewniak's guidance here when he's back from sabbatical next week; I'm not sure who is currently responsible for libraries in core like Vue and Pinia.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1330484 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/core@master] Add vue-router to core for use by extensions/skins

https://gerrit.wikimedia.org/r/1330484

Hello! To get this rolling, would you feel comfortable auditing the router using the tools listed on OfficeWiki and the vulnaudit skill on wmf-claude? Thanks!

Change #1330484 merged by jenkins-bot:

[mediawiki/core@master] Add vue-router to core for use by extensions/skins

https://gerrit.wikimedia.org/r/1330484

Hello! To get this rolling, would you feel comfortable auditing the router using the tools listed on OfficeWiki and the vulnaudit skill on wmf-claude? Thanks!

Okay, doing this post merge:

download & extract

wget https://registry.npmjs.org/vue-router/-/vue-router-4.5.1.tgz
--2026-09-14 13:55:05--  https://registry.npmjs.org/vue-router/-/vue-router-4.5.1.tgz
Resolving registry.npmjs.org (registry.npmjs.org)... 104.16.1.34, 104.16.5.34, 104.16.3.34, ...
Connecting to registry.npmjs.org (registry.npmjs.org)|104.16.1.34|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 221345 (216K) [application/octet-stream]
Saving to: ‘vue-router-4.5.1.tgz’

vue-router-4.5.1.tgz              100%[============================================================>] 216.16K  --.-KB/s    in 0.04s   

2026-09-14 13:55:05 (4.86 MB/s) - ‘vue-router-4.5.1.tgz’ saved [221345/221345]
$ tar -xvf vue-router-4.5.1.tgz 
package/LICENSE
package/dist/vue-router.cjs
package/dist/vue-router.prod.cjs
package/index.js
package/dist/vue-router.cjs.js
package/dist/vue-router.cjs.prod.js
package/dist/vue-router.esm-browser.js
package/dist/vue-router.esm-browser.prod.js
package/dist/vue-router.esm-bundler.js
package/dist/vue-router.global.js
package/dist/vue-router.global.prod.js
package/vetur/attributes.json
package/package.json
package/vetur/tags.json
package/dist/vue-router.mjs
package/dist/vue-router.node.mjs
package/vue-router-auto-routes.d.ts
package/vue-router-auto.d.ts
package/dist/vue-router.d.ts
$ cd package/

install

$ /home/linuxbrew/.linuxbrew/Cellar/node@20/20.20.2/bin/npm install
npm warn deprecated lodash.clone@3.0.3: This package is deprecated. Use structuredClone instead.
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated lodash.pick@4.4.0: This package is deprecated. Use destructuring assignment syntax instead.
npm warn deprecated git-raw-commits@2.0.11: Deprecated and no longer maintained. Use @conventional-changelog/git-client instead.
npm warn deprecated git-semver-tags@4.1.1: Deprecated and no longer maintained. Use @conventional-changelog/git-client instead.
npm warn deprecated conventional-changelog-cli@2.2.2: This package is no longer maintained. Please use the conventional-changelog package instead.
npm warn deprecated whatwg-encoding@2.0.0: Use @exodus/bytes instead for a more spec-conformant and faster implementation
npm warn deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead
npm warn deprecated glob@8.1.0: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me
npm warn deprecated glob@7.2.0: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me
npm warn deprecated glob@7.2.3: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me
npm warn deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
npm warn deprecated domexception@4.0.0: Use your platform's native DOMException instead
npm warn deprecated q@1.5.1: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.
npm warn deprecated
npm warn deprecated (For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
npm warn deprecated conventional-changelog-core@4.2.4: Deprecated and no longer maintained. Please use conventional-changelog instead.
npm warn deprecated conventional-changelog-jquery@3.0.11: This preset is deprecated. Please use conventional-changelog-conventionalcommits or conventional-changelog-angular instead.
npm warn deprecated conventional-changelog-eslint@3.0.9: This preset is deprecated. Please use conventional-changelog-conventionalcommits or conventional-changelog-angular instead.
npm warn deprecated conventional-changelog-ember@2.0.9: This preset is deprecated. Please use conventional-changelog-conventionalcommits or conventional-changelog-angular instead.
npm warn deprecated conventional-changelog-atom@2.0.8: This preset is deprecated. Please use conventional-changelog-conventionalcommits or conventional-changelog-angular instead.
npm warn deprecated conventional-changelog-express@2.0.6: This preset is deprecated. Please use conventional-changelog-conventionalcommits or conventional-changelog-angular instead.
npm warn deprecated conventional-changelog-codemirror@2.0.8: This preset is deprecated. Please use conventional-changelog-conventionalcommits or conventional-changelog-angular instead.
npm warn deprecated conventional-changelog-jshint@2.0.9: This preset is deprecated. Please use conventional-changelog-conventionalcommits or conventional-changelog-angular instead.
npm warn deprecated uuid@3.4.0: uuid@10 and below is no longer supported.  For ESM codebases, update to uuid@latest.  For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).
npm warn deprecated loupe@2.3.4: Please upgrade to 2.3.7 which fixes GHSA-4q6p-r6v2-jvc5
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
npm warn deprecated uuid@8.3.2: uuid@10 and below is no longer supported.  For ESM codebases, update to uuid@latest.  For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).

added 621 packages, and audited 622 packages in 9s

84 packages are looking for funding
  run `npm fund` for details

19 vulnerabilities (1 low, 6 moderate, 11 high, 1 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

Audit

$ npm audit --omit peer --omit optional
# npm audit report

diff  5.0.0 - 5.2.1
jsdiff has a Denial of Service vulnerability in parsePatch and applyPatch - https://github.com/advisories/GHSA-73rr-hh4g-fpgx
fix available via `npm audit fix --force`
Will install nightwatch@3.16.0, which is a breaking change
node_modules/mocha/node_modules/diff
  mocha  8.2.0 - 11.8.0
  Depends on vulnerable versions of diff
  Depends on vulnerable versions of js-yaml
  Depends on vulnerable versions of minimatch
  Depends on vulnerable versions of nanoid
  Depends on vulnerable versions of serialize-javascript
  node_modules/mocha
    nightwatch  0.2.3-preview.1 || >=0.3.2
    Depends on vulnerable versions of ejs
    Depends on vulnerable versions of lodash.pick
    Depends on vulnerable versions of minimatch
    Depends on vulnerable versions of mocha
    Depends on vulnerable versions of semver
    Depends on vulnerable versions of uuid
    node_modules/nightwatch

ejs  <3.1.10
Severity: moderate
ejs lacks certain pollution protection - https://github.com/advisories/GHSA-ghr5-ch3p-vcr6
fix available via `npm audit fix --force`
Will install nightwatch@3.16.0, which is a breaking change
node_modules/ejs

esbuild  <=0.24.2
Severity: moderate
esbuild enables any website to send any requests to the development server and read the response - https://github.com/advisories/GHSA-67mh-4wv8-2f99
fix available via `npm audit fix --force`
Will install vite@8.3.0, which is a breaking change
node_modules/esbuild
  vite  <=6.4.2
  Depends on vulnerable versions of esbuild
  node_modules/vite

extract-zip  *
Severity: high
extract-zip unvalidated symlink path traversal - https://github.com/advisories/GHSA-jmr9-qjv8-65gv
extract-zip allows arbitrary file writes through symlink archive entries - https://github.com/advisories/GHSA-7pqw-9j4j-h8q3
fix available via `npm audit fix --force`
Will install chromedriver@153.0.0, which is a breaking change
node_modules/extract-zip
  chromedriver  2.29.2 - 148.0.2
  Depends on vulnerable versions of extract-zip
  node_modules/chromedriver

happy-dom  <=20.8.8
Severity: critical
Happy DOM: VM Context Escape can lead to Remote Code Execution - https://github.com/advisories/GHSA-37j7-fg3j-429f
Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies - https://github.com/advisories/GHSA-w4gp-fjgq-3q4g
Happy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable code - https://github.com/advisories/GHSA-6q6h-j7hj-3r64
fix available via `npm audit fix --force`
Will install happy-dom@20.14.5, which is a breaking change
node_modules/happy-dom

js-yaml  4.0.0 - 4.3.1
Severity: high
js-yaml has prototype pollution in merge (<<) - https://github.com/advisories/GHSA-mh29-5h37-fv8m
JS-YAML: Quadratic-complexity DoS in merge key handling via repeated aliases - https://github.com/advisories/GHSA-h67p-54hq-rp68
js-yaml: YAML merge-key chains can force quadratic CPU consumption - https://github.com/advisories/GHSA-52cp-r559-cp3m
JS-YAML: Quadratic CPU consumption in !!omap resolution (3.x and 4.x) — CVE-2026-59870 fix not backported - https://github.com/advisories/GHSA-5p4m-2wfm-xmqj
js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources - https://github.com/advisories/GHSA-2883-xcg3-v3hh
fix available via `npm audit fix --force`
Will install nightwatch@3.16.0, which is a breaking change
node_modules/js-yaml

lodash.pick  >=4.0.0
Severity: high
Prototype Pollution in lodash - https://github.com/advisories/GHSA-p6mc-m468-83gw
fix available via `npm audit fix --force`
Will install nightwatch@3.16.0, which is a breaking change
node_modules/lodash.pick

minimatch  <=3.1.3 || 4.0.0 - 4.2.4
Severity: high
minimatch has a ReDoS via repeated wildcards with non-matching literal in pattern - https://github.com/advisories/GHSA-3ppc-4f35-3m26
minimatch has a ReDoS via repeated wildcards with non-matching literal in pattern - https://github.com/advisories/GHSA-3ppc-4f35-3m26
minimatch has ReDoS: matchOne() combinatorial backtracking via multiple non-adjacent GLOBSTAR segments - https://github.com/advisories/GHSA-7r86-cg39-jmmj
minimatch has ReDoS: matchOne() combinatorial backtracking via multiple non-adjacent GLOBSTAR segments - https://github.com/advisories/GHSA-7r86-cg39-jmmj
minimatch ReDoS: nested *() extglobs generate catastrophically backtracking regular expressions - https://github.com/advisories/GHSA-23c5-xmqv-rm74
minimatch ReDoS: nested *() extglobs generate catastrophically backtracking regular expressions - https://github.com/advisories/GHSA-23c5-xmqv-rm74
fix available via `npm audit fix --force`
Will install nightwatch@3.16.0, which is a breaking change
node_modules/mocha/node_modules/minimatch
node_modules/nightwatch/node_modules/minimatch

nanoid  <=3.3.17
Severity: high
Predictable results in nanoid generation when given non-integer values - https://github.com/advisories/GHSA-mwcw-c2x4-8c55
nanoid: non-secure generators can loop indefinitely with negative size - https://github.com/advisories/GHSA-28wg-ghj8-5hjv
nanoid: custom generators can loop indefinitely when size is zero - https://github.com/advisories/GHSA-2v37-7h3g-55p8
nanoid: Integer Overflow or Wraparound - https://github.com/advisories/GHSA-xwg4-73v4-xw9w
fix available via `npm audit fix --force`
Will install nightwatch@3.16.0, which is a breaking change
node_modules/nanoid

semver  7.0.0 - 7.5.1
Severity: high
semver vulnerable to Regular Expression Denial of Service - https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
fix available via `npm audit fix --force`
Will install nightwatch@3.16.0, which is a breaking change
node_modules/nightwatch/node_modules/semver

serialize-javascript  <=7.0.4
Severity: high
Serialize JavaScript is Vulnerable to RCE via RegExp.flags and Date.prototype.toISOString() - https://github.com/advisories/GHSA-5c6j-r48x-rmvq
Serialize JavaScript has CPU Exhaustion Denial of Service via crafted array-like objects - https://github.com/advisories/GHSA-qj8w-gfj5-8c6v
Cross-site Scripting (XSS) in serialize-javascript - https://github.com/advisories/GHSA-76p7-773f-r4q5
fix available via `npm audit fix --force`
Will install nightwatch@3.16.0, which is a breaking change
node_modules/mocha/node_modules/serialize-javascript
node_modules/serialize-javascript
  @rollup/plugin-terser  0.2.0 - 0.4.4
  Depends on vulnerable versions of serialize-javascript
  node_modules/@rollup/plugin-terser

uuid  <11.1.1
Severity: moderate
uuid: Missing buffer bounds check in v3/v5/v6 when buf is provided - https://github.com/advisories/GHSA-w5hq-g745-h8pq
fix available via `npm audit fix --force`
Will install nightwatch@3.16.0, which is a breaking change
node_modules/tempfile/node_modules/uuid
node_modules/uuid
  tempfile  <=4.0.0
  Depends on vulnerable versions of uuid
  node_modules/tempfile
    conventional-changelog-cli  0.0.1 - 3.0.0
    Depends on vulnerable versions of tempfile
    node_modules/conventional-changelog-cli


19 vulnerabilities (1 low, 6 moderate, 11 high, 1 critical)

To address all issues (including breaking changes), run:
  npm audit fix --force

/vuln-audit

1# vue-router (core bundling) Security Review
2
3**Target:** `resources/lib/vue-router/` + `resources/Resources.php:611` (module `vue-router`), mediawiki/core @ HEAD (`b9931185ea7`, master)
4**Merge under review:** `0054ca7dbd2` "Add vue-router to core for use by extensions/skins" (Bug: T290916, T436156)
5**Reviewer:** Claude (retroactive audit, requested post-merge)
6**Date:** 2026-09-14
7
8## Methodology / Scope
9
10Threat model: an ordinary anonymous or registered Wikimedia user, reachable only through whatever public ingress a MediaWiki extension or skin exposes on top of this library. vue-router itself ships no server component, so the question is entirely about what core's registration does and what (if anything) currently feeds it attacker-controlled data. Audited at core's current HEAD rather than pinned to the merge commit, per the engineer's direction, since production risk lives wherever the code is now.
11
12Files reviewed in detail:
13- `resources/Resources.php` (the `vue-router` and `vue` RL module definitions, lines ~580-635)
14- `resources/lib/vue-router/vue-router.global.js` (vendored, 3961 lines) and `vue-router.global.prod.js`
15- `resources/lib/foreign-resources.cdx.json` / `.yaml` (provenance entry, confirms `vue-router@4.5.1`)
16- Full-tree grep for any core, extension, or skin code that calls `createRouter`, `createWebHistory`, `createMemoryHistory`, `createWebHashHistory`, or otherwise depends on the `vue-router` RL module
17
18## Summary
19
20No findings. Nothing in mediawiki/core currently invokes vue-router; the merge added only the vendored library and its ResourceLoader registration, with zero consuming call sites.
21
22## Findings
23
24None. There is no attacker-reachable path today: the library is registered but unused, so there is no public byte that reaches any vue-router code path via any ingress.
25
26## Not currently exploitable
27
28None identified as code-level bugs — see "Reviewed without finding" below for what was checked and ruled out.
29
30## Reviewed without finding
31
32- **RL module wiring** (`resources/Resources.php:611-635`). The `vue-router` module is a `packageFiles` definition that `file_get_contents()`s a static, repo-vendored file and string-concatenates a `require('vue')` prefix and `module.exports` suffix around it. All inputs to the concatenation are static file paths selected by `$wgVueDevelopmentMode`/RL debug context, not attacker data. This is a byte-for-byte mirror of the pre-existing `vue` module registration immediately above it in the same file — no novel pattern, no injection surface.
33- **Dev vs. prod build selection.** Same debug-mode gate (`context->getDebug()`) as every other RL library module (`vue`, `jquery`, etc.). Serving the unminified build under `?debug=true` is documented, existing ResourceLoader behavior, not something this merge introduced.
34- **Consuming call sites.** Grepped mediawiki/core (including the empty `extensions/`/`skins/` placeholders in this checkout) for `createRouter`, `createWebHistory`, `createMemoryHistory`, `createWebHashHistory`, and any `extension.json`/`skin.json` declaring `vue-router` as a dependency. None found. Nothing in core parses a URL, route param, or query string into this library today.
35- **Vendored library source** (`vue-router.global.js`). Grepped for `eval(`, `new Function(`, `innerHTML`, `document.write`, `__proto__`/`constructor.prototype` assignment patterns — none present. Route matching is vue-router's own regex-based matcher (not the old `path-to-regexp` lineage that had prior prototype-pollution CVEs in other ecosystems).
36- **Known-vulnerability check.** No CVE/GHSA advisory found against `vue-router@4.5.1` itself (checked via web search against GitHub Advisory Database / OSV / OpenCVE, 2026-09-14). The one adjacent advisory found, GHSA-mm7m-92g8-7m47, is a Nuxt-specific `routeRules` middleware bypass caused by Nuxt's own route-rule matcher disagreeing with vue-router's case-insensitive-by-default matching — it requires a second, Nuxt-side matcher that MediaWiki has no equivalent of, so it doesn't transfer here as-is. Recorded below as a forward-looking caution, not a finding, since it's the shape of bug this bundling could reproduce once something builds gated routes on top of it.
37- **Provenance record** (`foreign-resources.cdx.json`/`.yaml`). Matches the vendored version (`4.5.1`) and license (MIT); consistent, no discrepancy.
38
39## Recommendations beyond the findings
40
41- **This is a pre-emptive audit, not a clean bill of health for future use.** The risk here is entirely deferred to whichever extension or skin first wires a `router = createRouter(...)` against MediaWiki's URL surface. Re-run this audit (or a scoped version of it) against the *first* real consumer, once one exists — the interesting questions (does a route param get rendered unescaped into a `<router-view>`, does anything build a client-side "redirect" from `location.search`, is a route guard used as if it were an authorization check) can't be answered until there's a call site to point at.
42- **Flag the matcher defaults for whoever adopts this first.** vue-router 4.5.1 defaults to `sensitive: false, strict: false` (`vue-router.global.js:990-991,1420`) — case-insensitive, trailing-slash-tolerant route matching. That's the exact defaults mismatch that produced GHSA-mm7m-92g8-7m47 in Nuxt. If a future MediaWiki extension ever gates a route behind a permission check keyed on the matched path string, it should either set `sensitive: true` or do the permission check server-side (PHP), not by string-comparing the client route.
43- **Client-side route guards are not an authorization boundary.** Worth stating explicitly in whatever developer-facing docs come with this module (mediawiki.org VueRouter docs, if any get written): any `beforeEach`/`meta.requiresAuth`-style guard is client-side and fully attacker-controlled; real permission checks belong in the PHP API/REST layer the SPA talks to, per MediaWiki's existing convention for every other client-rendered UI.

@Rsilvola happy to run another round of this /vuln-audit against a poc of using this vendored version in the PersonalDashboard extension.

@Rsilvola happy to run another round of this /vuln-audit against a poc of using this vendored version in the PersonalDashboard extension.

This makes sense to me; seems like we'll get more meaningful results that way. Thanks for doing this @jsn.sherman!

Change #1343145 had a related patch set uploaded (by Jsn.sherman; author: Jsn.sherman):

[mediawiki/extensions/PersonalDashboard@master] DNM: Use core's vue-router in PersonalDashboard

https://gerrit.wikimedia.org/r/1343145

@Rsilvola happy to run another round of this /vuln-audit against a poc of using this vendored version in the PersonalDashboard extension.

This makes sense to me; seems like we'll get more meaningful results that way. Thanks for doing this @jsn.sherman!

Done. patch attached to this task, and followup vuln check in the paste below:

1# PersonalDashboard core-vue-router PoC Security Review
2
3**Target:** `jsn/poc-core-vue-router` branch, commit `7336023a119a` (Bug: T436156)
4**Reviewer:** Claude (retroactive audit, requested post-commit)
5**Date:** 2026-09-18
6
7## Methodology / Scope
8
9Threat model: an ordinary anonymous or registered Wikimedia user, reachable
10only through Special:PersonalDashboard's public rendering and client-side
11routing. This is round two of the T436156 review. Round one
12(https://phabricator.wikimedia.org/P96452) audited core's vue-router bundling
13itself and found no findings, because nothing in core consumed the module
14yet; its own recommendation was to re-run against the first real consumer
15once one existed. This PoC — swapping PersonalDashboard from its own
16vendored copy of vue-router to core's — is that consumer, so this round
17answers the three questions the first one deferred: does a route param
18render unescaped, does anything build a client-side redirect from
19`location.search`, and is a route guard ever used as an authorization
20check.
21
22Files reviewed in detail:
23- `resources/ext.personalDashboard.special/init.js` (router construction, route table)
24- `resources/ext.personalDashboard.special/mediaWikiHistory.js` (custom `RouterHistory`)
25- `resources/ext.personalDashboard.special/Dashboard.vue` (route-driven UI state)
26- `resources/ext.personalDashboard.special/App.vue`, `ModuleDialog.vue`, `FocusedFrame.vue`, `FocusedHeader.vue` (render sinks for route-derived data)
27- `src/Specials/SpecialPersonalDashboard.php` (server-side `$par` resolution, the authorization boundary the client mirrors)
28- Full-tree grep for `v-html`, `innerHTML`, navigation guards (`beforeEach`, `beforeResolve`, `meta.requiresAuth`)
29- The commit's own diff (`extension.json`, the deleted vendoring hook, the version drop from the extension's previously-vendored `vue-router@5.1.0` to core's `4.5.1`)
30
31## Summary
32
33No findings.
34
35## Findings
36
37None.
38
39## Reviewed without finding
40
41- **Route param never reaches a render sink unescaped.** The one route is a
42 catch-all, `path: '/:module(.*)'` (`init.js:62`). `Dashboard.vue`'s
43 `activeName` computed reads `this.$route.params.module` and uses it only
44 as a lookup key against `this.islands` (`Dashboard.vue:109-110`, a
45 server-supplied list of known module names) — an unrecognized value
46 resolves to `''`, never to an unescaped string. Every place a route-derived
47 value reaches the DOM does so through Vue text interpolation or a Codex
48 prop (`FocusedHeader.vue:28` `{{ title }}`, `ModuleDialog.vue`'s `:title`
49 on `CdxDialog`), both auto-escaping, and the `title` value itself is
50 `island.header`, which comes from server config (`init.js:43`), not from
51 the route. No `v-html`/`innerHTML` anywhere under
52 `resources/ext.personalDashboard.special/`.
53- **No client-side redirect built from `location.search`.** `mediaWikiHistory.js`
54 reads `location.search` only to detect which URL form (`?title=` vs.
55 `/wiki/...`) the visitor arrived on (`titleFromLocation`, `mediaWikiHistory.js:38-45`)
56 and to carry ambient params (`uselang`, `variant`, ...) forward on writes
57 (`mediaWikiHistory.js:84-93`). Every write goes through `hrefFor`, which
58 builds query strings with `URLSearchParams` (encodes correctly) and
59 targets only the fixed `specialPage` read once at load time
60 (`mediaWikiHistory.js:81`) — there is no path where a request parameter
61 picks the redirect destination.
62- **No route guard doubles as an authorization check**, confirming the
63 round-one recommendation held: there is no `beforeEach`/`beforeResolve`/
64 `meta.requiresAuth` anywhere in the tree. `Dashboard.vue`'s route-driven
65 logic only picks which already-rendered island to present (dialog vs.
66 in-page frame vs. nothing) from a client-side list the server already
67 decided to ship (`init.js:32-48`, gated on `module.enabled`). The real
68 authorization-relevant resolution happens server-side and independently
69 of the client router: `SpecialPersonalDashboard::execute()` parses `$par`
70 itself and checks `$modules[$moduleName]->supports()`
71 (`SpecialPersonalDashboard.php:149-151`) before deciding what to render or
72 serve. A client route never grants access to anything the server wouldn't
73 have served directly.
74- **The matcher-default concern from round one (vue-router's
75 `sensitive: false, strict: false`, the shape of GHSA-mm7m-92g8-7m47) does
76 not apply here.** There is exactly one route, a catch-all; with only one
77 route record, case-insensitive/trailing-slash-tolerant matching can't
78 create the kind of two-routes-disagree ambiguity that advisory depends on.
79- **The version drop (extension's previously-vendored `vue-router@5.1.0` to
80 core's `4.5.1`) is not a functional regression.** vue-router 5.x made no
81 breaking API changes over 4.x (confirmed against the upstream migration
82 guide, https://router.vuejs.org/guide/migration/v4-to-v5.html), and the
83 custom `RouterHistory` in `mediaWikiHistory.js` uses only the stable
84 `history` interface (`push`/`replace`/`go`/`listen`/`createHref`) that
85 hasn't changed across that boundary.
86- **Removing the extension's own vendored copy and its `ResourceLoaderRegisterModulesHandler`
87 closes off the exact collision this repo hit in T438387** (a duplicate
88 `vue-router` RL module registration warning, which was why the extension's
89 copy was renamed to `personaldashboard-vue-router` in the first place).
90 With the local copy gone, PersonalDashboard can no longer collide with
91 core's module under either name.
92- **The registration mechanics core now owns are byte-for-byte what round
93 one already cleared**: a `packageFiles` callback that `file_get_contents()`s
94 a static, repo-vendored file path selected only by
95 `$wgVueDevelopmentMode`/RL debug context — no attacker-controlled input
96 reaches that concatenation. This PoC doesn't change that code; it just
97 points PersonalDashboard's dependency at it.
98
99## Recommendations beyond the findings
100
101- This closes out the T436156 review's open question for PersonalDashboard
102 specifically: there is now a real consumer, and it doesn't turn the
103 vue-router bundling into an exploitable surface. The broader
104 recommendation from round one still stands for any *other* extension that
105 adopts core's `vue-router` — re-check the same three questions (unescaped
106 route params, search-driven redirects, guards-as-auth) against whatever
107 that extension's own route table and render sinks look like, since the
108 answer here is specific to PersonalDashboard's one-route, no-guard setup
109 and doesn't generalize automatically.
110- The correctness review run ahead of this commit (not part of this security
111 pass) flagged that `ext.personalDashboard.special` now hard-depends on an
112 RL module the extension doesn't own, with no test coverage that resolves
113 a real router against `createMediaWikiHistory()` — worth tracking
114 separately as a deployability gap, not a vulnerability, before this ever
115 moves past PoC.

Thanks @jsn.sherman!

@Rsilvola, what else is needed before this can be resolved?

This was discussed with Jon Robson. We'll follow up in Q2. You are ok to proceed pending future work with the security team.