Update diff dependency to fix GHSA-73rr-hh4g-fpgx DoS vulnerability#1900
Update diff dependency to fix GHSA-73rr-hh4g-fpgx DoS vulnerability#1900
Conversation
…ility Co-authored-by: azu <19714+azu@users.noreply.github.com>
Co-authored-by: azu <19714+azu@users.noreply.github.com>
|
@copilot tell me summary of diff changelogs |
Here's a summary of diff changelogs from v5.2.0 to v8.0.3: Major Changes by Versionv6.0.0 (Breaking changes):
v7.0.0 (Breaking):
v8.0.0 (Breaking):
v8.0.3 (Security fix):
Impact on textlintThe package only uses |
There was a problem hiding this comment.
Pull request overview
This pull request updates the diff dependency from version ^5.2.0 to ^8.0.3 in the @textlint/fixer-formatter package to address a Denial of Service (DoS) vulnerability (GHSA-73rr-hh4g-fpgx). The vulnerability affects versions prior to 8.0.3, where parsePatch and applyPatch functions can enter infinite loops or exhibit O(n³) performance with malformed filename headers.
Changes:
- Updated diff dependency from ^5.2.0 to ^8.0.3 in @textlint/fixer-formatter
- Removed @types/diff dependency as diff 8.x includes native TypeScript types
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/@textlint/fixer-formatter/package.json | Updated diff to ^8.0.3 and removed @types/diff from devDependencies |
| pnpm-lock.yaml | Updated lockfile to reflect new diff version (8.0.3) and removed @types/diff references |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
<!-- Release notes generated using configuration in .github/release.yml at master --> ## What's Changed ### Documentation * docs: add GitHub formatter documentation by @azu in #1857 * Update CLI documentation for lint error handling by @thompson-tomo in #1861 ### CI * chore(deps): update github/codeql-action action to v3.31.6 by @renovate[bot] in #1860 * chore(deps): update peter-evans/create-pull-request action to v7.0.11 by @renovate[bot] in #1865 * chore(deps): update github/codeql-action action to v3.31.7 by @renovate[bot] in #1870 * chore(deps): update github/codeql-action action to v3.31.8 by @renovate[bot] in #1876 * chore(deps): update github/codeql-action action to v3.31.9 by @renovate[bot] in #1879 * chore(deps): update rossjrw/pr-preview-action action to v1.7.0 by @renovate[bot] in #1882 * chore(deps): update rossjrw/pr-preview-action action to v1.7.1 by @renovate[bot] in #1885 * chore(deps): update rossjrw/pr-preview-action action to v1.7.2 by @renovate[bot] in #1886 * chore(deps): update minor updates by @renovate[bot] in #1887 ### Dependency Updates * Update diff dependency to fix GHSA-73rr-hh4g-fpgx DoS vulnerability by @Copilot in #1900 * fix(deps): update dependency @modelcontextprotocol/sdk to ^1.24.3 by @renovate[bot] in #1859 * chore(deps): update eslint to ^8.49.0 (minor) by @renovate[bot] in #1862 * chore(deps): update pnpm to v10.25.0 by @renovate[bot] in #1863 * chore(deps): update dependency @types/node to ^24.10.2 by @renovate[bot] in #1864 * chore(deps): update dependency @types/node to ^24.10.3 by @renovate[bot] in #1866 * fix(deps): update react monorepo to ^19.2.3 (patch) by @renovate[bot] in #1867 * chore(deps): update dependency @types/shelljs to ^0.10.0 by @renovate[bot] in #1868 * chore(deps): update dependency @eslint/js to ^9.39.2 by @renovate[bot] in #1869 * chore(deps): update dependency @types/node to ^24.10.4 by @renovate[bot] in #1871 * chore(deps): update pnpm to v10.26.0 by @renovate[bot] in #1872 * chore(deps): update eslint to ^8.50.0 (minor) by @renovate[bot] in #1874 * fix(deps): update dependency @modelcontextprotocol/sdk to ^1.25.0 by @renovate[bot] in #1875 * fix(deps): update dependency @modelcontextprotocol/sdk to ^1.25.1 by @renovate[bot] in #1877 * chore(deps): update pnpm to v10.26.1 by @renovate[bot] in #1878 * chore(deps): update eslint to ^8.50.1 (patch) by @renovate[bot] in #1880 * chore(deps): update pnpm to v10.26.2 by @renovate[bot] in #1881 * chore(deps): update eslint to ^8.51.0 (minor) by @renovate[bot] in #1883 * chore(deps): update pnpm to v10.27.0 by @renovate[bot] in #1884 * chore(deps): update eslint to ^8.52.0 (minor) by @renovate[bot] in #1888 * fix(deps): update dependency @modelcontextprotocol/sdk to ^1.25.2 by @renovate[bot] in #1889 * chore(deps): update pnpm to v10.28.0 by @renovate[bot] in #1890 * chore(deps): update patch updates (patch) by @renovate[bot] in #1891 * chore(deps): update dependency @types/node to ^24.10.7 by @renovate[bot] in #1892 * fix(deps): update babel monorepo to ^7.28.6 (patch) by @renovate[bot] in #1893 * chore(deps): update eslint to ^8.53.0 (minor) by @renovate[bot] in #1894 * chore(deps): update dependency @types/node to ^24.10.8 by @renovate[bot] in #1895 * chore(deps): update dependency @types/node to ^24.10.9 by @renovate[bot] in #1897 **Full Changelog**: v15.5.0...v15.5.1 Co-authored-by: azu <azu@users.noreply.github.com>
The
diffpackage versions prior to 8.0.3 contain a DoS vulnerability (GHSA-73rr-hh4g-fpgx) whereparsePatchandapplyPatchcan enter infinite loops or exhibit O(n³) performance when parsing patches with malformed filename headers containing line break characters.Changes
difffrom^5.2.0to^8.0.3in@textlint/fixer-formatter@types/diffdependency (diff 8.x includes native TypeScript types)The package uses only
diffLinesfrom the diff API, which remains compatible across versions.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.