> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# jsx-javascript-url

> In React 18 and older or Preact, a URL search parameter or location hash starts a JSX href, action or iframe src (javascript: XSS).

## What it flags

A URL search parameter, router query, location hash, form field or `postMessage` payload starts a JSX `href`, `action`, `formAction` or iframe `src`, so a `javascript:` URL runs script. Only React 18 and older or Preact, read from the nearest package.json; silent for React 19, which blocks these URLs, and when the version cannot be read. Constant prefixes, props and fetched data are not reported.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "jsx-javascript-url": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.