Skip to content

Unsafe shell command constructed from library input in AutomationEnvironment.ts #14242

Description

@jonthysell

Problem Description

CodeQL caught that we're using shell commands from JS to get info about an appx and then launch it for unit tests.

packages/@react-native-windows/automation/src/AutomationEnvironment.ts : 202

packages/@react-native-windows/automation/src/AutomationEnvironment.ts : 327

Steps To Reproduce

See CodeQL alert.

Expected Results

No response

CLI version

npx @react-native-community/cli -v

Environment

npx @react-native-community/cli info

Community Modules

No response

Target Platform Version

None

Target Device(s)

No response

Visual Studio Version

None

Build Configuration

None

Snack, code example, screenshot, or link to a repository

No response

Metadata

Metadata

Assignees

Labels

Area: ComplianceWorkstream: ES Compliance SFIProvide regular ES infrastructure and ensure RNW meets internal security and compliance requirementsbugsecurityPull requests that address a security vulnerability

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions