Repository navigation
chore: resolve npm audit warnings in bigbluebutton-html5, bbb-export-annotations, bbb-shared-notes-server, bbb-graphql-actions, bbb-learning-dashboard, docs, bigbluebutton-tests/playwright and bbb-graphql-client-test - #26195
Conversation
…ions, bbb-shared-notes-server, bbb-graphql-actions, bbb-learning-dashboard, docs, bigbluebutton-tests/playwright and bbb-graphql-client-test
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughThe HTML5 package updates Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to
|
🚨 Automated tests failed |
e9ff019
into
bigbluebutton:v3.0.x-develop
Covers v3.0.39..v3.0.x-develop 1830523 (88 non-merge commits). The catch-up in ff9bb09 audited develop up to 41c3d21, which 3.0.39 contains, so nothing from 3.0.37 to 3.0.39 was left over. Most of this range came with its own docs: the Grails 8 stack and what it changes for integrations and administrators (427b797, 627c4da), the bbb-playback-presentation-legacy package (#25836) and the dead `captions` value of disabledFeatures (#25972). new-features.md - Upgraded components: Tomcat 11.0.26 -> 11.0.27 (#26240, ext['tomcat.version'] in bigbluebutton-web/build.gradle). - Other notable changes: public.chat.announceUserAwayStatusInChat (#26089, default true). bbb-apps-akka reads it from settings.yml merged with /etc/bigbluebutton/bbb-html5.yml when it starts, and from the create call's client settings override, so it can be set per server or per session. The away icon is not affected. The entry also names announcePresenterChangeInChat, which does the same for presenter changes and was never documented. - Recent releases: added 3.0.40 ahead of the tag, so the list is ready when the release ships. The link 404s until then. development/dev-guide.md - deploy_to_usr_share.sh installs the packaged bbb-web.service when the installed unit differs, and stops before deploying while an override keeps the Grails 7 classpath (6cf8e1c, dcc1883). Deliberately not changed - bbb-web properties ledger: bigbluebutton.properties only lost `captions` from a comment. The keys the Grails 8 port added to bbb-web's application.properties (grails.security.headers.enabled, server.tomcat.max-parameter-count, spring.servlet.multipart.*) are covered by the Grails 8 section. - akka-apps application.conf, ApiParams, the create/join tables, resources.xml and bbb-conf are unchanged in the range. - lettuce-core 7.7.0 and the other dependency bumps (#26195, #26199), and the CI build image with Go 1.27.3, Gradle 9.8.1 and Node 22.23.4: nothing an administrator sees; bbb-web still builds with its Gradle 9.8.0 wrapper. - Fixes are left to the release notes, including the two that touch documented features: every self-unmute now ends the away status (#25940), and the Web Speech captions use the session's microphone on Chrome 135 or later (#25927). The others are the stale connection watchdog, GraphQL stream replay, recording panzoom and exported text wrapping. `npx docusaurus build` passes. The new anchor resolves, and none of the build's broken-anchor warnings involve a link added here.
What this does
npm auditsweep of every npm project onv3.0.x-develop(basea5e8d60ace), resolved with semver-compatible moves only. One commit,package.json/package-lock.jsonfiles only (10 files across 8 projects). No source change.bigbluebutton-html5sanitize-html2.17.7->2.18.1(manifest pin + lock)bigbluebutton-html5postcss-selector-parser(viacss-loader->postcss-modules-local-by-default4.0.5->4.2.0,postcss-modules-scope3.2.0->3.2.1)6.1.4->7.1.7, nested7.1.5copy dedupedbigbluebutton-html5follow-redirects,launch-editor,webpack-dev-server,postcss,dayjs,fast-glob,is-plain-object,launderbbb-export-annotationsfollow-redirects(viaaxios)1.16.0->1.16.1bbb-shared-notes-serverfollow-redirects(viaaxios),ip-address(viaexpress-rate-limit)1.16.0->1.16.1,10.7.2->10.7.4bbb-graphql-actionsnodemonsubtree (dev)3.0.1->3.1.14,chokidar3.5.3->3.6.0, itsminimatch/brace-expansion/balanced-matchre-resolved^3bbb-learning-dashboardreact-scripts 5.0.1/tailwindcss 3.4subtree@typescript-eslint/* 5.27.1->5.62.0,jest-*28.1.1->28.1.3,follow-redirects,source-map-js,launch-editor, postcss plugins)docs@docusaurus/*declared ranges^3.3.2/^3.5.0/^3.7.0->^3.10.2(the lock already resolved3.10.2; declarative, matchesv4.0.x-develop)docsoverridestinypool ^2.1.2,postcss-selector-parser ^7.1.6,sockjs -> uuid ^11.1.1(same set as #26059 on 4.0, minus itsmermaidpin, see below)tinypool1.1.1->2.2.0,postcss-selector-parser6.1.4->7.1.7, sockjs'suuid8.3.2->11.1.1,dompurify3.4.16->3.4.17,express4.22.3,body-parser,qs,http-cache-semantics,js-yaml 4.3.2,follow-redirects,launch-editor,webpack-dev-serverbigbluebutton-tests/playwright@typescript-eslint/*(dev)8.45.0->8.72.0within^8;follow-redirects,js-yaml 4.3.2,semver,ts-api-utilsbbb-graphql-client-testjestsupport packages pulled by@testing-library/*ranges29.7.0->30.5.x;tailwindcss 3.4.4->3.4.19;nanoid,qs,colord,fast-uri,follow-redirects,launch-editorWhy each change
sanitize-html2.17.7 -> 2.18.1 (bigbluebutton-html5, production bundle). Closes GHSA-374f-7chj-9948 (SMILanimatenamespace-prefix bypass ->javascript:URI, moderate), GHSA-x3q4-9hxx-gx8m (<noscript>content leaking past the nonTextTags discard region, moderate) and GHSA-cv27-6wvh-8x7j (meta http-equiv=refreshcontent, moderate). Reachability: the client has exactly one call site,stripTags()inimports/utils/string-utils.js, which runssanitize(text, { allowedTags: [] }). Its three callers are the chat notification toast (messageAsHtmlof an incoming chat message), the "save chat" export (the same server-rendered message HTML) and the plugin event-persistence manager (plugin event names), so attacker-controlled chat markup does flow through this package. All three advisories concern how permitted tags and attributes are handled; with no tags allowed the output never contains markup, so I do not believe they are exploitable at our call site. The bump is hygiene for the one package in the shipped bundle that processes attacker-controlled text, and it is the only change that alters the runtime bundle.postcss-selector-parser-> 7.1.7 (bigbluebutton-html5,docs). GHSA-rj75-hqrm-r3gf (quadratic selector parsing, moderate). Build-time only: it runs insidecss-loader/ PostCSS on our own stylesheets during webpack and Docusaurus builds. It showed up under--omit=devonly becausepostcss-nestedsits independencies. Not reachable at runtime. In html5 the top-level6.1.4copy and the nested7.1.5copy collapse into a single7.1.7because the twopostcss-modules-*plugins now accept^7.follow-redirects1.16.0 -> 1.16.1 (bbb-export-annotations,bbb-shared-notes-server,bigbluebutton-tests/playwright, and dev trees). GHSA-q3jh-wrc6-jgq8 and GHSA-8r9p-f939-6h3c (credential headers surviving a cross-origin redirect, high). Pulled byaxios 1.20.0. Both services only call the local BBB API / internal services with axios, so a cross-origin redirect carrying credentials is not a realistic path; patch-level, lock only.ip-address10.7.2 -> 10.7.4 (bbb-shared-notes-server). GHSA-rxp7-6hxx-x8q5 (Address6 zone-id quadratic parse, moderate). Reached throughexpress-rate-limit, which parses the client address of every request to the notes server, so a craftedX-Forwarded-For-style value could reach it. Patch-level, lock only.docsoverrides. GHSA-5gmw-xhrv-c9v3 / GHSA-85c8-ppgw-ccpr (tinypool prototype-pollution -> RCE, critical) and GHSA-cg2g-xh64-v4q7 (DOMPurify SAFE_FOR_TEMPLATES bypass, critical) plus the uuid / postcss-selector-parser moderates. All of it is Docusaurus build tooling or Mermaid's bundled sanitizer rendering our own diagrams, not user input, anddeploy-docs.ymlonly builds fromdevelop, so nothing on this branch is served. The point is parity withv4.0.x-develop(#26059) so the next forward merge ofdocs/package.jsonis a clean three-way merge, and a docs lock that is not red on everynpm install. The 4.0mermaid ^11.17.2override is deliberately not copied: on this branch@docusaurus/theme-mermaid 3.10.2(mermaid >=11.6.0) already resolvesmermaid 12.2.0withkatex 0.18.10anddompurify 3.4.17, and the pin would downgrade it to11.17.2/katex 0.16.47, which re-introduces GHSA-238p-pmpm-9mq7. (Follow-up for 4.0: its docs lock is onmermaid 11.17.2/dompurify 3.4.16today, so the same critical DOMPurify advisory is open there; dropping the mermaid override andnpm update mermaidclears it.)Everything else is
npm audit fixoutput: lock-only moves of dev tooling (@typescript-eslint,launch-editor,webpack-dev-server,js-yaml,nodemon, CRA plugins) within the ranges the manifests already declare. No manifest line changed for those.Major version upgrades
No direct dependency needed a major upgrade, and none was made. The two manifest edits are a minor bump (
sanitize-html) and declarative range / override changes indocs.Transitive packages that crossed a major in the hoisted tree, all pulled by a dependent whose declared range admits the new major (
npm ls --allreports zeroinvalidentries in every project):bigbluebutton-html5postcss-selector-parser6.1.4->7.1.7postcss-modules-local-by-default 4.2.0,postcss-modules-scope 3.2.1(^7),postcss-nested 7.0.2bbb-graphql-actionsminimatch/brace-expansion/balanced-match3.1.5->10.2.6/1.1.21->5.0.12/1.0.2->4.0.4nodemon 3.1.14(dev)bbb-learning-dashboardpostcss-nested,cssdb,fraction.js5.0.6->6.2.0,6.6.3->7.11.2,4.2.0->5.3.4tailwindcss 3.4.19,postcss-preset-env 7.8.3(react-scripts),autoprefixer 10.6.1docspostcss-selector-parser,tinypool, sockjs'suuid6.1.4->7.1.7,1.1.1->2.2.0,8.3.2->11.1.1overrides(same values as 4.0)bigbluebutton-tests/playwrightminimatch,brace-expansion,picomatch9.0.9->10.2.6,2.1.7->5.0.12,2.3.2->4.0.7@typescript-eslint/typescript-estree 8.72.0(dev; also dropsfast-glob/micromatch/bracesfortinyglobby)bbb-graphql-client-test@jest/*,expect,jest-*,@types/jest29.x->30.5.x@testing-library/jest-dom ^5/@types/jestopen ranges (dev harness)The hoisted-package map before/after each lock is in the work files (
lock-deltas.txt).Advisories deliberately left open
bigbluebutton-html5(dev)@typescript-eslint/* 6.21.0->minimatch 9.0.3ReDoS,globby/fast-glob->micromatch->braces@typescript-eslint7.5+/8 (major); lint tooling onlybigbluebutton-html5(dev)lint-staged 11.2.0,webpack-dev-server 5.2.7(chokidar 3,http-proxy-middleware,sockjs -> uuid 8) ->braceslint-staged 17andwebpack-dev-server 6(majors); pre-commit hook andnpm startonlybigbluebutton-html5(dev)eslint 7.32/eslint-config-airbnb/husky 4->js-yaml 3->argparse->sprintf-js(moderate)eslint 10,airbnb 19,husky 9majorsbbb-graphql-actions,bbb-shared-notes-server(dev)nodemon 3.1.14->chokidar 3.6->braces(GHSA-vfj7-8cjw-p6xm)bracesrelease exists (<=3.0.3is every version); npm's only offer is a downgrade tonodemon 1.14.10bbb-learning-dashboardreact-scripts 5.0.1(webpack-dev-server,webpack-dev-middleware,svgo 1.x,node-forgeviaselfsigned,jest 27,braces) plustailwindcss 3andeslint 7majorsdependencies). 4.0 moved the dashboard to Vite (#25509); not a 3.0 changebigbluebutton-tests/playwright(dev)husky 4->cosmiconfig->js-yaml 3->argparse->sprintf-js(5 moderate)husky 9major; git hook toolingbbb-graphql-client-test(dev)react-scripts 5.0.1devDependency--omit=devis cleandocsbracesx31 pathsv4.0.x-developafter #26059Residual audit state (
npm audit --omit=dev, after)bigbluebutton-html5bbb-export-annotationsbbb-graphql-actionsbbb-shared-notes-serverbbb-learning-dashboarddocsbracesonly)bigbluebutton-tests/playwrightbbb-graphql-client-testFull-tree counts (dev included): html5 H16/M15 -> H14/M11; export-annotations H1 -> clean; graphql-actions H3 -> H3; shared-notes H4/M1 -> H3; dashboard H56/M38 -> H53/M39; docs C18/H19/M18 -> H31; playwright H10/M2 -> M5; client-test H64/M37/L3 -> H59/M33/L3. No advisory that was absent before is present after, in any project.
Testing
Environment.
bigbluebutton-tests/playwrightfrom this branch (its lock moved only lint tooling;@playwright/test 1.56.0unchanged, chromium 1194),npm run test-chromium=--project=chromium --grep @ci --grep-invert '@flaky|@need-update|@only-headed|@setting-required', 406 tests, 2 workers, noTIMEOUT_MULTIPLIER. Target: the localbbb30container (imdt/bigbluebutton:3.0.x-develop,bbb-html5 1:3.0-130,bbb-web 1:3.0-43,bbb-apps-akka 1:3.0-45). The container's own baked bundle (bundleHash cf3bdaefb3913ae0e7ad) was not what was tested: two local builds of this very commit were deployed into/usr/share/bigbluebutton/html5-clientin turn, each verified by fetching/html5client/and matching thebundleHashline and thebundle.<hash>.jsit names (200, 8.8 MB), then the original directory was restored.bigbluebutton-html5/package.json+ lock (bundleHash 6b61a9699268d40a93f4)bundleHash 9065aac06c89a778107e)The two bundles differ in content (sanitize-html 2.18.1 and the postcss-selector-parser dedupe both end up in the output), so this is the clean A/B: same server, same tests, same settings, only the dependency change between them.
npm run build-safariwas not run (chromium only), so no.safari.jsvariant was deployed.One environment fix was needed first: the dev image symlinks the served
private/config/settings.ymlinto the host checkout, which sat on the 4.0.0 GA commit, so the first pair of runs sawshowParticipantsOnLogin: falseand 246 of 406 tests timed out on the closed user list on both bundles (identical per-test outcomes, reports kept in the work files as*-4.0settings.json). For the runs below a copy of this branch'ssettings.ymlwas put in place and akka-apps restarted; the symlink was restored afterwards.Pre-flight on the branch:
CI=true npm ci+npm run tscheck+npm run buildgreen (webpack 69 s under a 7 GB cgroup cap); husky pre-commit rantsc --noEmit --incrementalat commit time and passed (not bypassed);bbb-learning-dashboardnpm ci --omit=dev+DISABLE_ESLINT_PLUGIN=true npm run buildgreen (the packaging recipe);bbb-graphql-actionsandbbb-shared-notes-servernpm ci+npm run buildgreen;bbb-export-annotationsnpm ci --omit=devgreen;docsnpm ci+npm run buildgreen in thenode:24image (35 s,--memory=7g). Fullnpm auditbefore/after captured for every project (work files).Before (control bundle, full suite):
406 tests: 386 passed, 14 failed, 6 skipped (30.9 min).After (branch bundle, full suite):
406 tests: 381 passed, 19 failed, 6 skipped (40.1 min). The extra duration and the extra failures come from two unrelated causes, so every differing test was re-run in isolation:user.spec.tsLock viewers > Lock Edit Shared Notesuser.spec.tsLock viewers > Lock See other viewers in the Users listuser.spec.tsLock viewers > Lock Send private chat messagesuser.spec.tsLock viewers > Lock see other viewers annotationswhiteboard.spec.tsWhiteboard tools > Draw linewhiteboard.spec.tsWhiteboard tools > Draw rectanglewhiteboard.spec.tsWhiteboard tools > Redo drawinglearningdashboard.spec.tsBasic Infosuser.spec.tsLock viewers > Lock Share microphoneRedo drawing is a
toHaveScreenshotof the viewer page after undo withmaxDiffPixels: 1000; the diff image shows only the other user's cursor dot, the chat input focus ring and the random meeting name. In a clean series of three isolated runs per bundle the branch bundle passed 3 of 3 and the control bundle failed 1 of 3 (the saved diff/actual images are in the work files), so the check is on the edge of its pixel allowance on either bundle and does not attribute to this change.The 14 failures shared by both runs are the pre-existing state of this container (learning dashboard "Active" status, dark-mode / font-size / presentation screenshots, recording retrieval, the "Expected an editing shape!" whiteboard crash fixed in #26077, export text rows), identical on the control bundle.
Verdict: no Playwright failure is attributable to this change.
Pre-existing issues surfaced (not touched here)
bbb-shared-notes-server:npm run typecheckfails (src/common/singleton.ts(1,10): TS2305: Module './type' has no exported member 'MeetingLock') andnpm run lintreports 3no-unused-varserrors. Byte-identical output on the untouched base;npm run build(tsup) succeeds, which is what packaging runs.docs: Docusaurus reports ~10 broken anchors (/development/api#create,/plugins#plugin-versioning, ...) as warnings; content issue, build still succeeds..github/workflows/deploy-docs.ymlon this branch still says Node 18 andyarn install --frozen-lockfileagainst adocs/yarn.lockthat does not exist; harmless because it only triggers ondevelop, where the workflow is already the Node 24 /npm cione.docs/package.jsonengines.node >=18.0is stale (Docusaurus 3.10 needs Node 20+; 4.0 says>=24.0). Left alone; policy call.mermaid ^11.17.2override there now holds backmermaid 12/katex 0.18/dompurify 3.4.17(see above).