# Arbitrary code execution via eval() in JavaScript — Agent PR X-Ray

> Canonical page: https://codevetter.com/xray/js-eval-injection

This is an adjudicated synthetic benchmark example, not a claim about an uploaded repository.

## Source

- Corpus: codevetter-public-benchmark/js-eval-injection
- Language: javascript
- Category: security
- Evidence state: benchmark_ground_truth

## Finding

- Severity: high
- Title: code injection
- Summary: Caller-supplied expression is passed directly to eval(), turning any user-controlled value into executing JavaScript and enabling arbitrary code execution.
- Source anchor: `source.js:7`

## Verification boundary

The static finding is qualified against benchmark ground truth. No exact-current executable test or audience validation is included in this example, so those stages remain unverified.

## Public product links

- [CodeVetter](https://codevetter.com/)
- [Download](https://codevetter.com/download)
- [Documentation](https://codevetter.com/docs/)
- [Source](https://github.com/Codevetter/codevetter)
