← Back to Pull requests

[MINOR] Backport braces depth guard for React tooling #5528

Closed
unknown closed this pull request without merging on Oct 11, 2026 07:17 UTC
View on GitHub
unknown unknown commented on Oct 04, 2026 06:38 UTC
Author

What is this PR for?

The React npm audit job fails because braces@3.0.3 is affected by GHSA-vfj7-8cjw-p6xm. The upstream fix is under review in micromatch/braces#72, but there is no patched release or confirmed release date.

A downstream project pins a fork containing the fix. This PR instead uses patch-package to apply the depth-limit fix from micromatch/braces#72 at 28d440b to the published braces@3.0.3, without taking unrelated unpublished changes. The local, version-pinned patch keeps the workaround confined to this package and makes it straightforward to remove when an official release is available.

CI explicitly applies and verifies the patch. The audit policy temporarily allows only the two affected development-dependency paths, until December 4, 2026. Other high- and critical-severity findings still fail the job. If this approach is accepted, I will open a follow-up Jira issue to remove the patch and audit exceptions once an official fixed release is available.

What type of PR is it?

Improvement

Todos

[ ] Open a follow-up Jira issue for removing the temporary patch and audit exceptions if this approach is accepted

What is the Jira issue?

N/A

How should this be tested?

From zeppelin-web-angular/projects/zeppelin-react:

npm ci --ignore-scripts --no-audit
npm run apply:patches
npm run audit
npm run lint
npm test
npm run build

The patch check fails before the patch is applied and passes afterward. Locally, the audit policy, lint, build, and all 89 React tests passed. GitHub Actions has not yet been verified on this branch.

Screenshots (if appropriate)

N/A

Questions:

Does the license files need to update? No
Is there breaking changes for older versions? No
Does this needs documentation? Yes, documented in the React README

Diff: 252 lines (+189 / -63) across 3 files Reviewer: tbonelee Review duration: 10118m
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 252 lines diff across 3 files
0.39
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.331
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5528"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 39% (MEDIUM) · Higher = larger blast radius
39%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 15.4% · Safe to merge
15.4%