Vue.js 漏洞与安全更新
29 条
12月5日周六昨天
Vue I18n: escapeParameter sanitizer leaves elements open, so a translation can change how the rest of an SSR page is parsed
受影响: npm:vue-i18n = 9.14.5, npm:vue-i18n = 10.0.8, npm:vue-i18n >= 11.1.10, < 11.4.22 → 11.4.22, npm:vue-i18n >= 12.0.0-alpha.4, < 12.0.0-alpha.13 → 12.0.0-alpha.13, npm:petite-vue-i18n = 9.14.5, npm:petite-vue-i18n = 10.0.8, npm:petite-vue-i18n >= 11.1.10, < 11.4.22 → 11.4.22, npm:petite-vue-i18n >= 12.0.0-alpha.4, < 12.0.0-alpha.13 → 12.0.0-alpha.13, npm:@intlify/core-base = 9.14.5, npm:@intlify/core-base = 10.0.8, npm:@intlify/core-base >= 11.1.10, < 11.4.22 → 11.4.22, npm:@intlify/core-base >= 12.0.0-alpha.4, < 12.0.0-alpha.13 → 12.0.0-alpha.13, npm:@intlify/core = 9.14.5, npm:@intlify/core = 10.0.8, npm:@intlify/core >= 11.1.10, < 11.4.22 → 11.4.22, npm:@intlify/core >= 12.0.0-alpha.4, < 12.0.0-alpha.13 → 12.0.0-alpha.13, npm:@intlify/vue-i18n-core = 9.14.5, npm:@intlify/vue-i18n-core = 10.0.8, npm:@intlify/vue-i18n-core >= 11.1.10, < 11.4.22 → 11.4.22, npm:@intlify/vue-i18n-core >= 12.0.0-alpha.4, < 12.0.0-alpha.13 → 12.0.0-alpha.13, npm:@intlify/shared = 9.14.5, npm:@intlify/shared = 10.0.8, npm:@intlify/shared >= 11.1.10, < 11.4.22 → 11.4.22, npm:@intlify/shared >= 12.0.0-alpha.4, < 12.0.0-alpha.13 → 12.0.0-alpha.13 When escapeParameter is enabled (escapeParameterHtml in the Legacy API), Vue I18n sanitizes the translated HTML with sanitizeTranslatedHtml(). The sanitizer reads tags in the same way as the HTML tokenizer, but it does not follow how elements open and close. An element that a translation leaves open, or an end tag that closes an element outside the translation, stays in the result. When the page is rendered on the server (SSR), the rest of the page follows the translation in the same HTML, and…
Vue I18n: sanitizeTranslatedHtml bypass via unterminated attribute values
受影响: npm:vue-i18n = 9.14.5, npm:vue-i18n = 10.0.8, npm:vue-i18n >= 11.1.10, < 11.4.19 → 11.4.19, npm:vue-i18n >= 12.0.0-alpha.4, < 12.0.0-alpha.10 → 12.0.0-alpha.10, npm:petite-vue-i18n = 9.14.5, npm:petite-vue-i18n = 10.0.8, npm:petite-vue-i18n >= 11.1.10, < 11.4.19 → 11.4.19, npm:petite-vue-i18n >= 12.0.0-alpha.4, < 12.0.0-alpha.10 → 12.0.0-alpha.10, npm:@intlify/core-base = 9.14.5, npm:@intlify/core-base = 10.0.8, npm:@intlify/core-base >= 11.1.10, < 11.4.19 → 11.4.19, npm:@intlify/core-base >= 12.0.0-alpha.4, < 12.0.0-alpha.10 → 12.0.0-alpha.10, npm:@intlify/core = 9.14.5, npm:@intlify/core = 10.0.8, npm:@intlify/core >= 11.1.10, < 11.4.19 → 11.4.19, npm:@intlify/core >= 12.0.0-alpha.4, < 12.0.0-alpha.10 → 12.0.0-alpha.10, npm:@intlify/vue-i18n-core = 9.14.5, npm:@intlify/vue-i18n-core = 10.0.8, npm:@intlify/vue-i18n-core >= 11.1.10, < 11.4.19 → 11.4.19, npm:@intlify/vue-i18n-core >= 12.0.0-alpha.4, < 12.0.0-alpha.10 → 12.0.0-alpha.10, npm:@intlify/shared = 9.14.5, npm:@intlify/shared = 10.0.8, npm:@intlify/shared >= 11.1.10, < 11.4.19 → 11.4.19, npm:@intlify/shared >= 12.0.0-alpha.4, < 12.0.0-alpha.10 → 12.0.0-alpha.10 When escapeParameter is enabled (escapeParameterHtml in the Legacy API), Vue I18n passes the translated string through sanitizeTranslatedHtml(). The sanitizer disables javascript: URLs by rewriting them to about:blank — but only for attributes it can recognize. Both recognition passes require a well-formed attribute: the quoted pass needs the closing quote inside the message, and the unquoted pass rejects any value that starts with a quote character. A message that opens an attribute value and…
Vue I18n: Prototype Pollution via the `locale` argument of `mergeLocaleMessage`, `mergeDateTimeFormat` and `mergeNumberFormat`
受影响: npm:vue-i18n >= 7.0.0, < 9.0.0, npm:vue-i18n >= 9.0.0, <= 11.4.13 → 11.4.14, npm:vue-i18n >= 12.0.0-alpha.1, <= 12.0.0-alpha.4 → 12.0.0-alpha.5, npm:petite-vue-i18n >= 9.2.0-alpha.7, <= 11.4.13 → 11.4.14, npm:petite-vue-i18n >= 12.0.0-alpha.1, <= 12.0.0-alpha.4 → 12.0.0-alpha.5, npm:@intlify/vue-i18n-core >= 9.2.0-alpha.7, <= 11.4.13 → 11.4.14, npm:@intlify/vue-i18n-core >= 12.0.0-alpha.1, <= 12.0.0-alpha.4 → 12.0.0-alpha.5, npm:vue-i18n-bridge <= 10.0.0-alpha.1 In vue-i18n v9 and later, mergeLocaleMessage(), mergeDateTimeFormat() and mergeNumberFormat() look up the entry to merge into with container[locale]. When the locale is the name of a property inherited from Object.prototype, this lookup returns a built-in object, and the methods write into it: - With '__proto__', all three methods write into Object.prototype. - With 'constructor', mergeDateTimeFormat() and mergeNumberFormat() write into the global Object. A format with a key such as keys replac…
10月29日周四
Vue I18n: `escapeParameter` does not escape named values when the same call also passes a list
受影响: npm:vue-i18n >= 9.0.0-beta.5, < 11.4.14 → 11.4.14, npm:vue-i18n >= 12.0.0-alpha.1, < 12.0.0-alpha.5 → 12.0.0-alpha.5, npm:@intlify/core >= 9.0.0-beta.10, < 11.4.14 → 11.4.14, npm:@intlify/core >= 12.0.0-alpha.1, < 12.0.0-alpha.5 → 12.0.0-alpha.5, npm:@intlify/core-base >= 9.0.0-beta.12, < 11.4.14 → 11.4.14, npm:@intlify/core-base >= 12.0.0-alpha.1, < 12.0.0-alpha.5 → 12.0.0-alpha.5, npm:petite-vue-i18n >= 9.2.0-alpha.7, < 11.4.14 → 11.4.14, npm:petite-vue-i18n >= 12.0.0-alpha.1, < 12.0.0-alpha.5 → 12.0.0-alpha.5, npm:@intlify/vue-i18n-core >= 9.2.0-alpha.7, < 11.4.14 → 11.4.14, npm:@intlify/vue-i18n-core >= 12.0.0-alpha.1, < 12.0.0-alpha.5 → 12.0.0-alpha.5 When escapeParameter is enabled (escapeParameterHtml in the Legacy API), Vue I18n escapes the interpolation parameters before formatting a message. escapeParams() escapes either the list values or the named values, but not both: the two branches are joined by else. When a single call passes both, for example t(key, ['...'], { named: { ... } }), the named values reach the message without being escaped. Details escapeParams() in [packages/core-base/src/translate.ts (v11.4.13)](https://github.com/…
Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messages
受影响: npm:vue-i18n = 9.14.5, npm:vue-i18n = 10.0.8, npm:vue-i18n >= 11.1.10, < 11.4.14 → 11.4.14, npm:vue-i18n = 12.0.0-alpha.4 → 12.0.0-alpha.5, npm:petite-vue-i18n = 9.14.5, npm:petite-vue-i18n = 10.0.8, npm:petite-vue-i18n >= 11.1.10, < 11.4.14 → 11.4.14, npm:petite-vue-i18n = 12.0.0-alpha.4 → 12.0.0-alpha.5, npm:@intlify/core-base = 9.14.5, npm:@intlify/core-base = 10.0.8, npm:@intlify/core-base >= 11.1.10, < 11.4.14 → 11.4.14, npm:@intlify/core-base = 12.0.0-alpha.4 → 12.0.0-alpha.5, npm:@intlify/core = 9.14.5, npm:@intlify/core = 10.0.8, npm:@intlify/core >= 11.1.10, < 11.4.14 → 11.4.14, npm:@intlify/core = 12.0.0-alpha.4 → 12.0.0-alpha.5, npm:@intlify/vue-i18n-core = 9.14.5, npm:@intlify/vue-i18n-core = 10.0.8, npm:@intlify/vue-i18n-core >= 11.1.10, < 11.4.14 → 11.4.14, npm:@intlify/vue-i18n-core = 12.0.0-alpha.4 → 12.0.0-alpha.5, npm:@intlify/shared = 9.14.5, npm:@intlify/shared = 10.0.8, npm:@intlify/shared >= 11.1.10, < 11.4.14 → 11.4.14, npm:@intlify/shared = 12.0.0-alpha.4 → 12.0.0-alpha.5 When escapeParameter is enabled (escapeParameterHtml in the Legacy API), Vue I18n passes the translated string through sanitizeTranslatedHtml(). The sanitizer escapes in attribute values and neutralizes event handler attributes such as onerror, but it does not handle the srcdoc attribute of . The value of srcdoc is an HTML document: the browser decodes the character references in it and parses the result as a nested document in the same origin. The escaping and the neutralization done by the sa…
10月23日周五
Nuxt server islands render `useHeadSafe` input without sanitisation
受影响: npm:nuxt >= 3.13.0, < 4.6.2 → 4.6.2 useHeadSafe restricts head input to an allowlist of safe tags and attributes. For example, bodyAttrs is limited to class and style, event handler attributes are removed, and Mitigating factors - Server components are experimental. They are only active when the application defines a .server.vue component or page, or enables experimental.componentIslands and renders . - Exploitation requires the application to pass attacker-controlled data to useHeadSafe inside a server island. useHeadSafe called…
Nuxt: Incomplete fix for GHSA-934w-87qh-qr26: a `javascript:` URL prefixed with an ASCII control character executes from `<NuxtLink>` when `pages` is disabled
受影响: npm:nuxt < 4.6.0 → 4.6.0 An application that renders with a value it does not control can be made to render an anchor whose href executes script in the application's origin when clicked. This is an incomplete fix for [GHSA-934w-87qh-qr26](https://github.com/nuxt/nuxt/security/advisories/GHSA-934w-87qh-qr26) (CVE-2026-53722). It only affects applications running without a pages/ directory, where pages resolves to false and Nuxt registers its own router in place of vue-router. Applications using vue-router are not affect…
10月16日周五
TanStack Router: Unauthenticated reflected XSS in TanStack Start server-function responses
受影响: npm:@tanstack/start-server-core >= 1.143.12, < 1.169.39 → 1.169.39, npm:@tanstack/react-start >= 1.143.12, < 1.168.60 → 1.168.60, npm:@tanstack/solid-start >= 1.143.12, < 1.168.57 → 1.168.57, npm:@tanstack/vue-start >= 1.143.12, < 1.168.56 → 1.168.56 An unauthenticated attacker can craft a URL to a server function in an affected TanStack Start app. If someone opens the link, the app can return attacker-controlled HTML from its own origin and run the attacker's JavaScript there. The script can access same-origin data available to that visitor and make requests with their authority. Cause The server-function transport can pass request payload fields into internal middleware state instead of limiting them to public input fields. A malfo…
8月12日周二
Taming JavaScript Complexity: The Artisan of the Day Is Evan You
Meet Evan You, the creator of Vue.js and Vite, two essential pieces of the modern JavaScript ecosystem.
3月20日周四
Laravel Starter Kits: A New Beginning for Your Next Project
We’ve overhauled our starter kits, replacing Jetstream and Breeze with three distinct, purpose-built starter kits in Livewire, React, and Vue. These new kits allow you to focus on building your app instead of creating boilerplate code from scratch.
2月22日周六
Laravel Cloud is live! Can you ship in 1 minute?
Today we shipped Laravel Cloud, Starter Kits (React, Vue, & Livewire), VS Code Extension, and Laravel 12.
9月1日周日
Announcing Vue 3.5
Today we are excited to announce the release of Vue 3.5 "Tengen Toppa Gurren Lagann"! This minor release contains no breaking changes and includes both internal improvements and useful new features. We will cover some highlights in this blog post - for a full list of changes and new features, please consult the full changelog on GitHub .
3月21日周四
Announcing VitePress 1.0
Today we are happy to announce the (long overdue) 1.0 release of VitePress ! VitePress is a Static Site Generator (SSG) designed for building fast, content-centric websites. In a nutshell, VitePress takes your source content written in Markdown, applies a theme to it, and generates static HTML pages that can be easily deployed anywhere. VitePress is built on top of Vite and Vue , and is the spiritual successor and modern replacement of VuePress .
12月28日周四
Announcing Vue 3.4
Today we're excited to announce the release of Vue 3.4 "🏀 Slam Dunk"! This release includes some substantial internal improvements - most notably a rewritten template parser that is 2x faster, and a refactored reactivity system that makes effect triggering more accurate and efficient. It also packs a number of quality-of-life API improvements, including the stabilization of defineModel and a new same-name shorthand when binding props. This post provides an overview of the highlighted features in 3.4. For the full list of changes, please consult the full changelog on GitHub .
12月15日周五
Vue 2 is Approaching End Of Life
With 2024 almost upon us, we would like to take this opportunity to remind the Vue community that Vue 2 will reach End of Life (EOL) on December 31st, 2023. Vue 2.0 was released more than 7 years ago in 2016. It was a major milestone in Vue's journey of becoming a mainstream framework. Many current Vue users started using Vue during the Vue 2 era, and many great things have been built with it. However, active maintenance of two major versions in parallel isn't sustainable for us. As Vue 3 and its ecosystem have matured, it is time for the team to move on and focus our energy on the latest maj…
9月19日周二
The State of Web Frameworks on Deno
With npm compatibility in Deno improving, and npm specifiers now available on Deno Deploy, there are more options than ever to build web apps on Deno. Let's explore some options, including Fresh, SvelteKit, Nuxt/Vue, Astro, and beyond.
5月11日周四
Announcing Vue 3.3
Today we're excited to announce the release of Vue 3.3 "Rurouni Kenshin"! This release is focused on developer experience improvements - in particular, SFC <script setup> usage with TypeScript. Together with the 1.6 release of Vue Language Tools (previously known as Volar), we have resolved many long-standing pain points when using Vue with TypeScript. This post provides an overview of the highlighted features in 3.3. For the full list of changes, please consult the full changelog on GitHub .
2月8日周三
Volar: a New Beginning
Most users of Volar know it as the official Vue.js VSCode extension. It started as a personal project when the official recommendation was still Vetur, and over time got adopted as the new official extension due to improved architecture and performance. As a project created to improve the quality of life for developers, we spent over two years before reaching 1.0 , and have been continuously shipping stability improvements. But we've still got more work to do, and there are exciting plans for 2023.
1月1日周日
2022 Year In Review
Happy new year, Vue community! With 2023 upon us, we would like to take this opportunity to recap what happened in 2022, and discuss what to expect in 2023.
12月5日周一
On Escape's Vue 2 to Svelte Migration
Recently, folks at Escape shared a blog post talking about their migration from Vue 2 to Svelte, and compared Vue 3 with Svelte. We found that the article contained a number of inaccuracies. In this post, we will share some thoughts from our perspective and hope to clarify the potential misconceptions the post could give rise to.
11月16日周三
Build Apps in Deno with Frameworks such as React, Vue, Express, and more.
Getting started with web frameworks in npm and Deno.
10月10日周一
Volar 1.0 "Nika" Released!
We are happy to announce that we have released v1.0 of Volar, the official IDE/TS tooling support for Vue! 🎉 This major version ships with tons of improvements across the board. In addition to improving UX, performance, and package size, we also released Plugin API v1 and refactored the core code to be framework-agnostic. 注:結尾附有中文版本 (There is Chinese version of this post at the end)。
7月1日周五
Vue 2.7 "Naruto" Released
Today we are happy to announce that Vue 2.7 "Naruto" has been released!
6月20日周一
Vue 2.7 is Now in Beta
We are happy to announce that Vue 2.7 is now in beta.
1月20日周四
Vue 3 as the New Default
TL;DR: Vue 3 is now the new default version as of Monday, February 7, 2022 ! Make sure to read the Potential Required Actions section to see if you need to make certain changes before the switch to avoid breakage.
8月5日周四
Vue 3.2 Released!
We are excited to announce the release of Vue.js 3.2 "Quintessential Quintuplets"! This release includes many significant new features and performance improvements, and contains no breaking changes.
6月18日周五
Deploying Your Nuxt.js Site To Laravel Forge
Nuxt.js is a framework for generating static websites using Vue.js. Today we’re we're going to explore how to deploy your Nuxt.js application with [Laravel Forge](https://forge.laravel.com). If you'r...
1月11日周一
Reflections for 2020-2021
With a new year upon us, we also have a new blog! In this post, we would like to take a look back at some of the highlights from 2020, as well as some ideas we have for 2021.
9月18日周五
Announcing Vue 3.0 "One Piece"
Today we are proud to announce the official release of Vue.js 3.0 "One Piece". This new major version of the framework provides improved performance, smaller bundle sizes, better TypeScript integration, new APIs for tackling large scale use cases, and a solid foundation for long-term future iterations of the framework.