← Back to scan
File as GitHub Issue repo: facebook/react

Push this scan report to facebook/react

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: require() 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 MINED024 [MINED024] Js Eval Usage: eval() executes arbitrary code. Code injection risk. packages/react-client/src/ReactClientDe…:20
CRIT MINED024 [MINED024] Js Eval Usage: eval() executes arbitrary code. Code injection risk. packages/react-client/src/ReactClientDe…:20
CRIT MINED024 [MINED024] Js Eval Usage: eval() executes arbitrary code. Code injection risk. compiler/packages/snap/src/sprout/evalu…:255
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… scripts/bench/build.js:47
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… packages/react-dom/src/test-utils/FizzT…:99
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… compiler/packages/snap/src/runner-worke…:67
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). packages/react-server/src/ReactServerSt…:239
HIGH SEC100 [SEC100] CORS permissive Access-Control-Allow-Origin: *: Permissive CORS policy (`*` orig… scripts/bench/server.js:50
HIGH SEC100 [SEC100] CORS permissive Access-Control-Allow-Origin: *: Permissive CORS policy (`*` orig… packages/react-devtools-shell/webpack-s…:235
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… scripts/jest/jest-cli.js:383
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… scripts/ci/download_devtools_regression…:43
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/react-devtools-core/src/standa…:193
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… packages/react-devtools-shared/src/devt…:45
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… packages/eslint-plugin-react-hooks/src/…:18
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… compiler/scripts/enable-feature-flag.js:69
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… packages/react-devtools-extensions/src/…:87
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… packages/react-devtools-extensions/src/…:12
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… compiler/packages/react-mcp-server/src/…:93
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… compiler/packages/react-compiler-health…:137
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… compiler/packages/react-compiler-health…:16
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… compiler/packages/babel-plugin-react-co…:28
HIGH MINED027 [MINED027] React State Array Mutation: state.X.push/splice/sort followed by setState — Re… compiler/packages/babel-plugin-react-co…:159
HIGH MINED027 [MINED027] React State Array Mutation: state.X.push/splice/sort followed by setState — Re… compiler/packages/babel-plugin-react-co…:66
HIGH MINED027 [MINED027] React State Array Mutation: state.X.push/splice/sort followed by setState — Re… compiler/packages/babel-plugin-react-co…:40
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … compiler/packages/babel-plugin-react-co…:159
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … compiler/packages/babel-plugin-react-co…:96
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … compiler/apps/playground/components/Acc…:70
HIGH MINED115 [MINED115] Action `actions/setup-node` pinned to mutable ref `@v4`: `uses: actions/setup-… .github/workflows/compiler_playground.y…:32
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/compiler_playground.y…:31
HIGH MINED115 [MINED115] Action `facebook/react/.github/workflows/shared_check_maintainer.yml` pinned t… .github/workflows/devtools_discord_noti…:28
HIGH MINED115 [MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v4`: `uses: actions/u… .github/workflows/devtools_regression_t…:193
HIGH MINED115 [MINED115] Action `actions/cache` pinned to mutable ref `@v4`: `uses: actions/cache@v4` r… .github/workflows/devtools_regression_t…:178
HIGH MINED115 [MINED115] Action `actions/download-artifact` pinned to mutable ref `@v4`: `uses: actions… .github/workflows/devtools_regression_t…:170
HIGH MINED115 [MINED115] Action `actions/cache` pinned to mutable ref `@v4`: `uses: actions/cache@v4` r… .github/workflows/devtools_regression_t…:161
HIGH MINED115 [MINED115] Action `actions/setup-node` pinned to mutable ref `@v4`: `uses: actions/setup-… .github/workflows/devtools_regression_t…:157
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/devtools_regression_t…:156
HIGH MINED115 [MINED115] Action `actions/download-artifact` pinned to mutable ref `@v4`: `uses: actions… .github/workflows/devtools_regression_t…:136
HIGH MINED115 [MINED115] Action `actions/cache` pinned to mutable ref `@v4`: `uses: actions/cache@v4` r… .github/workflows/devtools_regression_t…:127
HIGH MINED115 [MINED115] Action `actions/setup-node` pinned to mutable ref `@v4`: `uses: actions/setup-… .github/workflows/devtools_regression_t…:123
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/devtools_regression_t…:122
HIGH MINED115 [MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v4`: `uses: actions/u… .github/workflows/devtools_regression_t…:101
HIGH MINED115 [MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v4`: `uses: actions/u… .github/workflows/devtools_regression_t…:95
HIGH MINED115 [MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v4`: `uses: actions/u… .github/workflows/devtools_regression_t…:88
HIGH MINED115 [MINED115] Action `actions/download-artifact` pinned to mutable ref `@v4`: `uses: actions… .github/workflows/devtools_regression_t…:78
HIGH MINED115 [MINED115] Action `actions/cache` pinned to mutable ref `@v4`: `uses: actions/cache@v4` r… .github/workflows/devtools_regression_t…:67
HIGH MINED115 [MINED115] Action `actions/setup-node` pinned to mutable ref `@v4`: `uses: actions/setup-… .github/workflows/devtools_regression_t…:63
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/devtools_regression_t…:62
HIGH MINED115 [MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v4`: `uses: actions/u… .github/workflows/devtools_regression_t…:51
HIGH MINED115 [MINED115] Action `actions/cache` pinned to mutable ref `@v4`: `uses: actions/cache@v4` r… .github/workflows/devtools_regression_t…:32
HIGH MINED115 [MINED115] Action `actions/setup-node` pinned to mutable ref `@v4`: `uses: actions/setup-… .github/workflows/devtools_regression_t…:28
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/devtools_regression_t…:27
HIGH MINED115 [MINED115] Action `facebook/react/.github/workflows/shared_check_maintainer.yml` pinned t… .github/workflows/compiler_discord_noti…:28
HIGH MINED122 [MINED122] package.json dep `eslint-plugin-react-hooks` pulled from URL/Git: `dependencie… fixtures/eslint-v10/package.json:1
HIGH MINED122 [MINED122] package.json dep `eslint-plugin-react-hooks` pulled from URL/Git: `dependencie… fixtures/eslint-v8/package.json:1
HIGH MINED122 [MINED122] package.json dep `eslint-plugin-react-hooks` pulled from URL/Git: `dependencie… fixtures/eslint-v7/package.json:1
HIGH MINED122 [MINED122] package.json dep `eslint-plugin-react-hooks` pulled from URL/Git: `dependencie… fixtures/eslint-v6/package.json:1
HIGH MINED122 [MINED122] package.json dep `eslint-plugin-react-hooks` pulled from URL/Git: `dependencie… fixtures/eslint-v9/package.json:1
HIGH MINED122 [MINED122] package.json dep `eslint-plugin-react-internal` pulled from URL/Git: `devDepen… package.json:1
HIGH MINED113 [MINED113] Express POST / has no auth: Express route POST / declared without an auth midd… fixtures/flight/server/region.js:203
HIGH MINED113 [MINED113] Express POST / has no auth: Express route POST / declared without an auth midd… fixtures/flight-esm/server/region.js:48
MED SEC136 [SEC136] AI-typical over-broad exception handler swallowing all errors: Catch-all excepti… packages/react-dom-bindings/src/client/…:38
MED SEC136 [SEC136] AI-typical over-broad exception handler swallowing all errors: Catch-all excepti… packages/react-devtools-shared/src/symb…:89
MED SEC136 [SEC136] AI-typical over-broad exception handler swallowing all errors: Catch-all excepti… packages/react-devtools-shared/src/stor…:13
MED SEC041 [SEC041] Tabnabbing — target="_blank" without rel="noopener noreferrer": <a target="_blan… packages/react-devtools-shared/src/devt…:137
MED SEC041 [SEC041] Tabnabbing — target="_blank" without rel="noopener noreferrer": <a target="_blan… packages/react-devtools-shared/src/devt…:66
MED SEC041 [SEC041] Tabnabbing — target="_blank" without rel="noopener noreferrer": <a target="_blan… packages/react-devtools-shared/src/devt…:41
MED ERR002 [ERR002] Empty Catch Block: Empty catch blocks hide errors. packages/react-devtools-shared/src/devt…:194
MED ERR002 [ERR002] Empty Catch Block: Empty catch blocks hide errors. packages/react-devtools-shared/src/back…:176
MED ERR002 [ERR002] Empty Catch Block: Empty catch blocks hide errors. packages/internal-test-utils/internalAc…:273
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … compiler/packages/react-compiler-health…:137
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … compiler/packages/react-compiler-health…:16
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … compiler/packages/babel-plugin-react-co…:28
LOW SEC132 [SEC132] String concat where the language has interpolation (AI style drift): String buil… packages/react-markup/src/ReactFizzConf…:126
LOW SEC132 [SEC132] String concat where the language has interpolation (AI style drift): String buil… packages/react-flight-server-fb/src/cli…:204
LOW SEC132 [SEC132] String concat where the language has interpolation (AI style drift): String buil… packages/react-devtools-extensions/edge…:32
LOW AIC003 Duplicated implementation block across source files packages/react-devtools-shared/src/devt…:45
LOW AIC003 Duplicated implementation block across source files packages/react-devtools-shared/src/devt…:45
LOW AIC003 Duplicated implementation block across source files packages/react-devtools-inline/webpack.…:77
LOW AIC003 Duplicated implementation block across source files packages/react-devtools-inline/webpack.…:13
LOW AIC003 Duplicated implementation block across source files packages/react-devtools-inline/webpack.…:1
LOW AIC003 Duplicated implementation block across source files packages/react-devtools-fusebox/webpack…:85
LOW AIC003 Duplicated implementation block across source files packages/react-devtools-fusebox/webpack…:9
LOW AIC003 Duplicated implementation block across source files packages/react-devtools-extensions/webp…:80
LOW AIC003 Duplicated implementation block across source files packages/react-devtools-extensions/webp…:9
LOW AIC003 Duplicated implementation block across source files packages/react-devtools-core/webpack.st…:1
LOW AIC003 Duplicated implementation block across source files packages/react-client/src/forks/ReactFl…:2
LOW AIC003 Duplicated implementation block across source files packages/react-client/src/ReactFlightCl…:1
LOW AIC003 Duplicated implementation block across source files packages/react-client/src/ReactClientCo…:2
LOW AIC003 Duplicated implementation block across source files packages/react-client/src/ReactClientCo…:2
LOW AIC003 Duplicated implementation block across source files packages/eslint-plugin-react-hooks/src/…:111
LOW AIC003 Duplicated implementation block across source files packages/eslint-plugin-react-hooks/src/…:13
LOW AIC003 Duplicated implementation block across source files compiler/packages/snap/src/runner.ts:195
LOW AIC003 Duplicated implementation block across source files compiler/packages/react-mcp-server/src/…:36
LOW AIC003 Duplicated implementation block across source files compiler/packages/react-compiler-health…:12
LOW AIC003 Duplicated implementation block across source files compiler/packages/babel-plugin-react-co…:227
LOW AIC003 Duplicated implementation block across source files compiler/packages/babel-plugin-react-co…:387
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. scripts/release/shared-commands/downloa…:11
INFO MINED058 [MINED058] React Dangerously Set Html: dangerouslySetInnerHTML bypasses Reacts JSX escapi… packages/react-dom-bindings/src/shared/…:104
INFO MINED058 [MINED058] React Dangerously Set Html: dangerouslySetInnerHTML bypasses Reacts JSX escapi… packages/react-dom-bindings/src/client/…:44
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… scripts/bench/benchmarks/hacker-news/be…:19
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… packages/react-dom-bindings/src/client/…:10
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… packages/react-devtools-shared/src/devt…:3
INFO MINED056 [MINED056] React Key As Index: key={index} in map() — re-renders the wrong elements on re… packages/react-devtools-shared/src/devt…:113
INFO MINED056 [MINED056] React Key As Index: key={index} in map() — re-renders the wrong elements on re… packages/react-devtools-shared/src/devt…:134
INFO MINED056 [MINED056] React Key As Index: key={index} in map() — re-renders the wrong elements on re… packages/react-devtools-shared/src/devt…:120
INFO MINED098 [MINED098] Global Scope Pollution: Attaching libraries/objects directly to the global win… packages/react-devtools-extensions/src/…:17
INFO MINED098 [MINED098] Global Scope Pollution: Attaching libraries/objects directly to the global win… packages/react-devtools-extensions/src/…:207
INFO MINED098 [MINED098] Global Scope Pollution: Attaching libraries/objects directly to the global win… packages/internal-test-utils/simulateBr…:335
INFO MINED088 [MINED088] React Conditional Hook: useState/useEffect inside if/loop violates Rules of Ho… packages/react/src/ReactHooks.js:55
INFO MINED088 [MINED088] React Conditional Hook: useState/useEffect inside if/loop violates Rules of Ho… compiler/packages/babel-plugin-react-co…:32
INFO MINED088 [MINED088] React Conditional Hook: useState/useEffect inside if/loop violates Rules of Ho… compiler/packages/babel-plugin-react-co…:131
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. compiler/packages/snap/src/sprout/evalu…:65
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. compiler/packages/make-read-only-util/s…:19
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. compiler/packages/babel-plugin-react-co…:18
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. compiler/packages/babel-plugin-react-co…:21
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. compiler/packages/babel-plugin-react-co…:42
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. compiler/packages/babel-plugin-react-co…:102
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … compiler/packages/babel-plugin-react-co…:45
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … compiler/packages/babel-plugin-react-co…:254
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … compiler/packages/babel-plugin-react-co…:178
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … compiler/packages/babel-plugin-react-co…:49
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … compiler/packages/babel-plugin-react-co…:38
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … compiler/apps/playground/components/Sto…:44
Reset to top 5 123 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `facebook/react`

**Score: 62/100 (A)**  ·  123 findings  ·  scanned 2026-06-05 04:28 UTC  ·  229,688 LOC

| Severity | Count |
|---|---|
| CRITICAL | 6 |
| HIGH | 54 |
| MEDIUM | 12 |
| LOW | 24 |

📊 [Full filterable report](https://repobility.com/scan/71490123-d37f-4659-ac2a-5b9a11374c25/)  ·  ![scorecard](https://repobility.com/scan/71490123-d37f-4659-ac2a-5b9a11374c25/report.png?v=1780633730-s2)

### Top findings

1. **CRITICAL** `MINED024` — Js Eval Usage
   `packages/react-client/src/ReactClientDebugConfigNode.js:20` · CWE-95 · ✓ Repobility
2. **CRITICAL** `MINED024` — Js Eval Usage
   `packages/react-client/src/ReactClientDebugConfigBrowser.js:20` · CWE-95 · ✓ Repobility
3. **CRITICAL** `MINED024` — Js Eval Usage
   `compiler/packages/snap/src/sprout/evaluator.ts:255` · CWE-95 · ✓ Repobility
4. **CRITICAL** `SEC084` — JS: require() with non-literal
   `scripts/bench/build.js:47`
5. **CRITICAL** `SEC084` — JS: require() with non-literal
   `packages/react-dom/src/test-utils/FizzTestUtils.js:99`

---

**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/71490123-d37f-4659-ac2a-5b9a11374c25/_
Already filed
'facebook' is on the known-megaproject org list. These projects use auto-triage bots and established security disclosure channels. Unsolicited automated issues from Repobility would be perceived as AI-generated spam. For security findings, follow the project's SECURITY.md policy. For non-security findings, open a focused PR or community discussion instead.
Already filed
This repo publishes a SECURITY.md policy and the scan contains 20 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 'facebook/react' 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.