Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue-template-compilerへのセキュリティアラートに対応する #1525

Closed
KentaHizume opened this issue Jul 30, 2024 · 5 comments · Fixed by #1513 or #1511
Closed

vue-template-compilerへのセキュリティアラートに対応する #1525

KentaHizume opened this issue Jul 30, 2024 · 5 comments · Fixed by #1513 or #1511
Assignees
Labels
npm npmパッケージの更新
Milestone

Comments

@KentaHizume
Copy link
Contributor

概要

完了条件

  • 影響調査の完了
  • 対処の完了
@KentaHizume
Copy link
Contributor Author

volar/vue-langage-core から依存している。

    "node_modules/@volar/vue-language-core": {
      "version": "1.0.24",
      "resolved": "https://registry.npmjs.org/@volar/vue-language-core/-/vue-language-core-1.0.24.tgz",
      "integrity": "sha512-2NTJzSgrwKu6uYwPqLiTMuAzi7fAY3yFy5PJ255bGJc82If0Xr+cW8pC80vpjG0D/aVLmlwAdO4+Ya2BI8GdDg==",
      "dev": true,
      "dependencies": {
        "@volar/language-core": "1.0.24",
        "@volar/source-map": "1.0.24",
        "@vue/compiler-dom": "^3.2.45",
        "@vue/compiler-sfc": "^3.2.45",
        "@vue/reactivity": "^3.2.45",
        "@vue/shared": "^3.2.45",
        "minimatch": "^5.1.1",
        "vue-template-compiler": "^2.7.14"
      }
    },

@KentaHizume
Copy link
Contributor Author

KentaHizume commented Jul 30, 2024

影響

https://nvd.nist.gov/vuln/detail/CVE-2024-6783
https://ja.herodevs.com/vulnerability-directory/cve-2024-6783---vue-client-side-xss

クロスサイトスクリプティングが可能な脆弱性。
下記のようなコードにおいて、うまくサニタイジングが行われない。

https://stackblitz.com/edit/cve-2024-6783?file=index.html

Object.prototypeを拡張した際に、特定のプロパティにXSS脆弱性が発生する。

Only certain properties are susceptible to Client-side XSS vulnerabilities when extending the Object.prototype.

悪用は難しいと言われている。

https://vuldb.com/?id.272294
The exploitation is known to be difficult.

@KentaHizume
Copy link
Contributor Author

KentaHizume commented Jul 30, 2024

対処

vue-template-compilerはVue2のコンパイルに使われている

vue-tsc 2.0.29へのバージョンアップで解決する

差分を確認したところ、
"vue-template-compiler": "^2.7.14"
の代わりに
"@vue/compiler-vue2": "^2.7.16"
を使用するように変更されている。

@KentaHizume KentaHizume self-assigned this Jul 30, 2024
@KentaHizume KentaHizume added the npm npmパッケージの更新 label Jul 30, 2024
@KentaHizume KentaHizume added this to the v0.10 milestone Jul 30, 2024
@tsuna-can-se
Copy link
Contributor

@KentaHizume
#1511
#1513
確かにpackage-lock.jsonに更新が入ってますね。

@KentaHizume
Copy link
Contributor Author

@tsuna-can-se
こちらのPRについて動作確認のうえ問題なければマージするように対応いたします。

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