← Back to scan
File as GitHub Issue repo: Sage/carbon

Push this scan report to Sage/carbon

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

JS: child_process.exec with non-literal

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT SEC009 [SEC009] .env File Committed: .env file with secrets committed to repository. .env
CRIT MINED116 Workflow uses `secrets.CHROMATIC_WORKFLOW_TOKEN` on a `pull_request` trigger .github/workflows/pr.yml:23
CRIT CORE_ENV_FILE .env file committed to repository .env
HIGH SEC027 [SEC027] XML External Entity (XXE) — Node.js xml parsers: Node.js XML parsers can expand … src/components/text-editor/__internal__…:34
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… src/components/text-editor/__internal__…:14
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… src/components/text-editor/__internal__…:154
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… src/components/text-editor/__internal__…:39
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… src/components/file-input/file-input.st…:247
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… src/components/decimal/decimal.componen…:203
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … src/hooks/useMediaQuery/useMediaQuery.ts:71
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … src/__spec_helper__/mock-match-media.ts:23
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… src/components/box/box.style.ts:47
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… src/__internal__/legacy-input/input.sty…:25
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… src/__internal__/legacy-input/input-pre…:88
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v6` .github/workflows/chromatic-push.yml:20
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/chromatic-push.yml:17
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v6` .github/workflows/semantic-commit-lint.…:16
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/semantic-commit-lint.…:12
HIGH MINED115 Action `github/codeql-action/analyze` pinned to mutable ref `@v3` .github/workflows/codeql-analysis.yml:32
HIGH MINED115 Action `github/codeql-action/autobuild` pinned to mutable ref `@v3` .github/workflows/codeql-analysis.yml:29
HIGH MINED115 Action `github/codeql-action/init` pinned to mutable ref `@v3` .github/workflows/codeql-analysis.yml:23
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/codeql-analysis.yml:19
HIGH MINED115 Action `aws-actions/configure-aws-credentials` pinned to mutable ref `@v1` .github/workflows/semantic-release.yml:68
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v6` .github/workflows/semantic-release.yml:58
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/semantic-release.yml:54
HIGH MINED115 Action `crazy-max/ghaction-import-gpg` pinned to mutable ref `@v3.0.1` .github/workflows/semantic-release.yml:31
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v6` .github/workflows/semantic-release.yml:23
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/semantic-release.yml:19
HIGH MINED126 Workflow container/services image `mcr.microsoft.com/playwright:v1.55.1-noble` unpinned .github/workflows/playwright.yml:15
HIGH MINED115 Action `actions/upload-artifact` pinned to mutable ref `@v6` .github/workflows/playwright.yml:85
HIGH MINED115 Action `actions/download-artifact` pinned to mutable ref `@v7` .github/workflows/playwright.yml:75
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v6` .github/workflows/playwright.yml:63
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/playwright.yml:62
HIGH MINED115 Action `actions/upload-artifact` pinned to mutable ref `@v6` .github/workflows/playwright.yml:50
HIGH MINED115 Action `actions/cache` pinned to mutable ref `@v5` .github/workflows/playwright.yml:30
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v6` .github/workflows/playwright.yml:23
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/playwright.yml:22
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v6` .github/workflows/chromatic.yml:43
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/chromatic.yml:39
HIGH MINED115 Action `octokit/request-action` pinned to mutable ref `@v2.x` .github/workflows/chromatic.yml:17
MED SEC041 [SEC041] Tabnabbing — target="_blank" without rel="noopener noreferrer": <a target="_blan… src/components/vertical-menu/vertical-m…:151
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … src/components/text-editor/__internal__…:14
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… src/components/profile/profile.stories.…:25
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… src/components/profile/profile-test.sto…:36
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… src/components/profile/component.test-p…:13
MED AUC001 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks…
MED DEPCUR-NPM npm package `@sage/design-tokens` is 14 major version(s) behind (4.29.0 -> 18.6.0) package.json
MED DEPCUR-NPM npm package `@rollup/plugin-commonjs` is 1 major version(s) behind (28.0.6 -> 29.0.3) package.json
MED DEPCUR-NPM npm package `@eslint/compat` is 1 major version(s) behind (1.4.1 -> 2.1.0) package.json
MED DEPCUR-NPM npm package `@commitlint/config-conventional` is 4 major version(s) behind (17.8.1 -> 21.… package.json
MED DEPCUR-NPM npm package `@commitlint/cli` is 4 major version(s) behind (17.8.1 -> 21.0.2) package.json
MED DEPCUR-NPM npm package `react-day-picker` is 1 major version(s) behind (9.3.2 -> 10.0.1) package.json
MED DEPCUR-NPM npm package `chalk` is 2 major version(s) behind (3.0.0 -> 5.6.2) package.json
MED DEPCUR-NPM npm package `@floating-ui/react-dom` is 1 major version(s) behind (1.3.0 -> 2.1.8) package.json
MED WEB003 Public web service has no security.txt .well-known/security.txt
MED AGT006 React interval is created without an explicit cleanup src/components/adaptive-sidebar/adaptiv…:551
MED WEB015 Public web app has no Content Security Policy index.html
LOW DEPCUR-NPM npm package `@dotenvx/dotenvx` is minor version(s) behind (1.42.2 -> 1.71.0) package.json
LOW DEPCUR-NPM npm package `@babel/preset-typescript` is minor version(s) behind (7.27.1 -> 7.29.7) package.json
LOW DEPCUR-NPM npm package `@babel/preset-react` is minor version(s) behind (7.27.1 -> 7.29.7) package.json
LOW DEPCUR-NPM npm package `@babel/preset-env` is minor version(s) behind (7.27.1 -> 7.29.7) package.json
LOW DEPCUR-NPM npm package `@babel/core` is minor version(s) behind (7.27.1 -> 7.29.7) package.json
LOW DEPCUR-NPM npm package `@axe-core/playwright` is minor version(s) behind (4.10.2 -> 4.11.3) package.json
LOW DEPCUR-NPM npm package `lexical` is minor version(s) behind (0.38.2 -> 0.45.0) package.json
LOW DEPCUR-NPM npm package `@tanstack/react-virtual` is minor version(s) behind (3.13.12 -> 3.14.2) package.json
LOW DEPCUR-NPM npm package `@lexical/selection` is minor version(s) behind (0.38.2 -> 0.45.0) package.json
LOW DEPCUR-NPM npm package `@lexical/link` is minor version(s) behind (0.38.2 -> 0.45.0) package.json
LOW DEPCUR-NPM npm package `@lexical/headless` is minor version(s) behind (0.38.2 -> 0.45.0) package.json
LOW DEPCUR-NPM npm package `@floating-ui/dom` is minor version(s) behind (1.2.9 -> 1.7.6) package.json
LOW DEPCUR-NPM npm package `@atlaskit/pragmatic-drag-and-drop-hitbox` is minor version(s) behind (1.1.0 … package.json
LOW DEPCUR-NPM npm package `@atlaskit/pragmatic-drag-and-drop` is minor version(s) behind (1.7.7 -> 1.8.… package.json
LOW AIC003 Duplicated implementation block across source files src/components/confirm/components.test-…:119
LOW AIC003 Duplicated implementation block across source files src/components/card/components.test-pw.…:113
LOW AIC003 Duplicated implementation block across source files src/components/card/components.test-pw.…:111
LOW AIC003 Duplicated implementation block across source files src/components/card/card.stories.tsx:31
LOW AIC003 Duplicated implementation block across source files src/components/carbon-provider/componen…:6
LOW AIC003 Duplicated implementation block across source files src/components/button/components.test-p…:98
LOW AIC003 Duplicated implementation block across source files src/components/button/button.pw.tsx:6
LOW AIC003 Duplicated implementation block across source files src/components/button/button.component.…:165
LOW AIC003 Duplicated implementation block across source files src/components/button/button-types.styl…:1
LOW AIC003 Duplicated implementation block across source files src/components/button/button-interactio…:186
LOW AIC003 Duplicated implementation block across source files src/components/button/__next__/button.s…:9
LOW AIC003 Duplicated implementation block across source files src/components/button-minor/components.…:24
LOW AIC003 Duplicated implementation block across source files src/components/box/components.test-pw.t…:29
LOW AIC003 Duplicated implementation block across source files src/components/box/components.test-pw.t…:5
LOW AIC003 Duplicated implementation block across source files src/components/batch-selection/componen…:6
LOW AIC003 Duplicated implementation block across source files src/components/batch-selection/batch-se…:16
LOW AIC003 Duplicated implementation block across source files src/components/anchor-navigation/compon…:39
LOW AIC003 Duplicated implementation block across source files src/components/anchor-navigation/anchor…:38
LOW AIC003 Duplicated implementation block across source files src/components/alert/components.test-pw…:8
LOW AIC003 Duplicated implementation block across source files src/components/alert/alert.stories.tsx:16
LOW AIC003 Duplicated implementation block across source files src/components/advanced-color-picker/co…:20
LOW AIC003 Duplicated implementation block across source files src/components/advanced-color-picker/ad…:50
LOW AIC003 Duplicated implementation block across source files src/components/adaptive-sidebar/adaptiv…:48
LOW AIC003 Duplicated implementation block across source files src/components/adaptive-sidebar/adaptiv…:468
LOW AIC003 Duplicated implementation block across source files src/components/adaptive-sidebar/adaptiv…:105
LOW AIC003 Duplicated implementation block across source files src/components/action-popover/action-po…:201
LOW AIC003 Duplicated implementation block across source files src/components/action-popover/action-po…:41
LOW AIC003 Duplicated implementation block across source files src/components/action-popover/action-po…:816
LOW AIC003 Duplicated implementation block across source files src/__internal__/legacy-input/input.com…:44
LOW AIC003 Duplicated implementation block across source files .storybook/welcome-page/header/header.c…:25
LOW AUC005 [AUC005] No authorization-focused tests detected: No test files with common authorization…
LOW WEB001 Public web app has no robots.txt robots.txt
LOW WEB002 Public web app has no sitemap sitemap.xml
LOW WEB008 Public docs site has no llms.txt llms.txt
LOW WEB011 Public web app has no humans.txt humans.txt
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. src/components/tooltip/tooltip.componen…:233
INFO MINED057 [MINED057] Todo Bomb: Code path with a TODO/FIXME/HACK comment that gates correctness — l… src/components/tooltip/tooltip.style.ts:37
INFO MINED057 [MINED057] Todo Bomb: Code path with a TODO/FIXME/HACK comment that gates correctness — l… src/components/tooltip/tooltip-pointer.…:20
INFO MINED057 [MINED057] Todo Bomb: Code path with a TODO/FIXME/HACK comment that gates correctness — l… src/components/action-popover/action-po…:47
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. src/components/help/help.component.tsx:46
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. src/__internal__/utils/helpers/tags/tag…:3
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… src/components/file-input/file-input.pw…:78
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… src/components/file-input/file-input-te…:46
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… .storybook/welcome-page/loves-carbon/lo…:19
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … scripts/check_node_version.mjs:7
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … .storybook/version-picker/index.tsx:64
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … .storybook/version-picker/fetch-data.ts:21
INFO MINED056 [MINED056] React Key As Index: key={index} in map() — re-renders the wrong elements on re… src/components/preview/preview.componen…:57
INFO MINED056 [MINED056] React Key As Index: key={index} in map() — re-renders the wrong elements on re… .storybook/utils/translation-keys-table…:30
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … src/__internal__/fieldset/__next__/fiel…:84
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … jest.config.ts:40
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … .storybook/manager.ts:16
INFO DEPCUR-NPM npm package `@rollup/plugin-node-resolve` is patch version(s) behind (16.0.1 -> 16.0.3) package.json
INFO DEPCUR-NPM npm package `@babel/types` is patch version(s) behind (7.29.0 -> 7.29.7) package.json
INFO DEPCUR-NPM npm package `@types/styled-system` is patch version(s) behind (5.1.23 -> 5.1.25) package.json
Reset to top 5 126 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `Sage/carbon`

**Score: 76/100 (B+)**  ·  126 findings  ·  scanned 2026-06-05 12:51 UTC  ·  274,331 LOC

| Severity | Count |
|---|---|
| CRITICAL | 3 |
| HIGH | 37 |
| MEDIUM | 17 |
| LOW | 49 |

📊 [Full filterable report](https://repobility.com/scan/1d2b0c80-c5e1-48d3-bc2a-65a7c3970515/)  ·  ![scorecard](https://repobility.com/scan/1d2b0c80-c5e1-48d3-bc2a-65a7c3970515/report.png?v=1780663865-s2)

### Top findings

1. **CRITICAL** `SEC009` — .env File Committed: .env file with secrets committed to repository.
   `.env`
2. **CRITICAL** `MINED116` — Workflow uses `secrets.CHROMATIC_WORKFLOW_TOKEN` on a `pull_request` trigger
   `.github/workflows/pr.yml:23` · ✓ Repobility
3. **CRITICAL** `CORE_ENV_FILE` — .env file committed to repository
   `.env`
4. **HIGH** `SEC027` — XML External Entity (XXE) — Node.js xml parsers
   `src/components/text-editor/__internal__/__utils__/helpers.ts:34` · A05:2021 Security Misconfiguration (XXE)
5. **HIGH** `SEC085` — JS: child_process.exec with non-literal
   `src/components/text-editor/__internal__/__ui__/Mentions/helpers.ts:14`

---

**Security note**: this issue is public. If any flagged finding is a real, exploitable vulnerability, please redirect to your `SECURITY.md` policy or open a [private security advisory](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability) instead. We're happy to close this and re-submit privately.

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/1d2b0c80-c5e1-48d3-bc2a-65a7c3970515/_
Already filed
This repo publishes a SECURITY.md policy and the scan contains 12 Critical/High security finding(s). Public issue filing would violate coordinated disclosure. Submit privately via the project's security reporting channel.
Megaproject â high spam risk
Could not determine 'Sage/carbon' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.