Description (CNA)
@refinedev/inferencer through 7.0.0 fails to escape API field names when interpolating them into generated JSX source code. Attackers controlling the data provider can inject malicious JavaScript through crafted JSON property names that execute in the developer's browser when the Inferencer page renders.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| refinedev / @refinedev/inferencer | affected 0 through 7.0.0 |
CWE
CWE-94
References
- https://github.com/refinedev/refine/issues/7556
- https://github.com/refinedev/refine
- https://github.com/refinedev/refine/blob/main/packages/inferencer/src/inferencers/antd/list.tsx#L140-L144
- https://github.com/refinedev/refine/blob/main/packages/inferencer/src/create-inferencer/index.tsx#L117-L128
- https://www.vulncheck.com/advisories/refinedev-inferencer-through-7.0.0-code-injection-via-api-field-names
ADP enrichment
No English description supplied.
No references supplied.