Skip to content

Fix high-severity dependency vulnerabilities + adaptor changelog MDX escaping - #826

Merged
josephjclark merged 4 commits into
mainfrom
security-updates-high-2026-07
Jul 27, 2026
Merged

Fix high-severity dependency vulnerabilities + adaptor changelog MDX escaping#826
josephjclark merged 4 commits into
mainfrom
security-updates-high-2026-07

Conversation

@mtuchi

@mtuchi mtuchi commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Description

Security updates covering open Dependabot alerts and PRs (#811#825), plus a CI build fix.

Security

  • Bumped direct pins: axios 1.18.0, form-data 4.0.6, sharp 0.35.3, brace-expansion 5.0.8
  • Refreshed in-range transitives: shell-quote, fast-uri, dompurify, svgo, websocket-driver, js-yaml, webpack-dev-server, http-proxy-middleware, @babel/core, ws, launch-editor
  • Deduped mermaid to the pinned 11.15.0 (theme-mermaid was resolving a second copy at 11.6.0)
  • Audit is now clean except brace-expansion@1.x (patch only exists in the API-incompatible v5 line; chain via @docusaurus/core → serve-handler → minimatch@3 is already at latest; affects local docusaurus serve only)

Build fix

  • generate-adaptors now escapes MDX-breaking characters (<, {, }) outside code blocks in generated changelogs and readmes; the gmail 3.0.0 changelog's <3.0 was failing yarn build in CI

AI Usage

Please disclose how you've used AI in this work (it's cool, we just want to
know!):

  • I have used Claude Code
  • I have used another model
  • I have not used AI

You can read more details in our
Responsible AI Policy

- axios 1.16.0 -> 1.18.0 (inherited-proxy issue in Node HTTP adapter)
- form-data 4.0.4/4.0.5 -> 4.0.6 (CRLF injection via multipart field names)
- sharp 0.34.2 -> 0.35.3 (inherited libvips CVEs: CVE-2026-33327/33328/35590/35591)
- brace-expansion 5.0.6 -> 5.0.8 (unbounded-expansion OOM DoS)
- brace-expansion 1.1.11 -> 1.1.16 (ReDoS, GHSA-v6h2-p8h4-qcjw)

Known remaining: brace-expansion 1.1.16 (via @docusaurus/core >
serve-handler > minimatch@3) is still flagged by the unbounded-expansion
advisory, which is only patched in 5.0.8. v5 is API-incompatible with
minimatch@3 and the whole chain is already at its latest versions, so no
safe fix exists; it only affects the local `docusaurus serve` command.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
mtuchi and others added 2 commits July 27, 2026 09:29
Covers all open Dependabot PRs (#811-#825) not already fixed:

- shell-quote 1.8.4 -> 1.10.0 (#825)
- fast-uri 3.1.2 -> 3.1.4 (#823)
- dompurify 3.4.1/3.4.2 -> 3.4.12 (#822)
- svgo 3.3.3 -> 3.3.4 (#821)
- websocket-driver 0.7.4 -> 0.7.5 (#818)
- js-yaml 3.14.2 -> 3.15.0 (#817)
- webpack-dev-server 5.2.4 -> 5.2.6 (#816)
- http-proxy-middleware 2.0.9 -> 2.0.10 (#815)
- @babel/core 7.25.2/7.27.4 -> 7.29.7 (#814)
- ws 7.5.10 -> 7.5.13, 8.18.3 -> 8.21.1 (#813)
- launch-editor 2.12.0 -> 2.14.1 (#811)

Also dedupes mermaid (theme-mermaid's >=11.6.0 was resolving to the
11.6.0 floor) to the already-pinned 11.15.0 via a resolution, clearing
the remaining 6 moderate advisories.

Audit is now clean except the documented brace-expansion 1.x advisory,
which has no compatible patch.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…admes

The gmail adaptor 3.0.0 changelog contains "in <3.0", which MDX parses
as a JSX tag start and fails the build (test-deploy CI). Extract the
code-block-aware escaping already used for jsdoc braces into an
escapeMdx() helper, add escaping of "<" when not followed by a
character that can start a JSX tag or HTML comment, and apply it to
changelog and readme generation too.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mtuchi mtuchi changed the title Fix high-severity dependency vulnerabilities Fix high-severity dependency vulnerabilities + adaptor changelog MDX escaping Jul 27, 2026
@mtuchi
mtuchi requested a review from josephjclark July 27, 2026 08:00
@mtuchi
mtuchi marked this pull request as ready for review July 27, 2026 08:00
@josephjclark

Copy link
Copy Markdown
Collaborator

Thank you @mtuchi ! So many issue open here.

I'm curious about the MDX template stuff. Do you know which issue that fixes?

@mtuchi

mtuchi commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

@josephjclark i don't think there is an existing issue for the mdx stuff, i just noticed ci pipeline was failing because of gmail latest changelog,

you can see even in recent merged pr, this action failed
https://github.com/OpenFn/docs/actions/runs/30275825513/job/90009503846

@josephjclark

Copy link
Copy Markdown
Collaborator

Do you have any idea why this isn't breaking locally? Did you manage to repro?

@mtuchi

mtuchi commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

Yes i was able to reproduce it, basically when you run yarn build you will be able to reproduce the bug
basically in gmail changelog it contain this word <3.0 and that's is causing the build to fail.

Screenshot 2026-07-27 at 18 40 42 Screenshot 2026-07-27 at 18 43 45

@josephjclark josephjclark left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, seems to work well! Thoroughly tested and happy to go. Thanks @mtuchi

@josephjclark
josephjclark merged commit 658e2d3 into main Jul 27, 2026
1 check passed
@josephjclark
josephjclark deleted the security-updates-high-2026-07 branch July 27, 2026 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants