Redocly's Respect Test Runner Could Execute Code From API Responses
Redocly CLI 2.77.0 patches respect so values from API responses and step outputs no longer run as code, and changes how runtime expressions parse.

Redocly fixed a flaw in respect, its API workflow testing tool, that could run values from API responses and step outputs as code, according to the release notes for respect-core 2.77.0 published Nov. 9. The notes say the problem occurred during runtime expression evaluation.
What the flaw touched
Respect runs the multistep API workflows that teams describe in Arazzo files, and it evaluates runtime expressions such as $response.body#/flag to read data from earlier steps. The fix applies to the values those expressions return: text coming back from the API under test, or passed along as a step output, could be executed instead of treated as plain data.
Parsing changes that can break existing files
Runtime expressions now accept any character the Arazzo grammar allows in a JSON Pointer, the release notes said. The change comes with a behavior change: a space is now required before && when it follows a pointer, as in $response.body#/flag && $statusCode == 200.
JSON Pointers also support the ~0 and ~1 escapes, so an expression can reach keys that contain ~ or /. A backslash in a string literal is now read as written, so "a\nb" no longer contains a newline.
A smaller fix for failed workflows
Respect used to report an unresolved workflow output instead of the step that failed, and it stopped the file’s other workflows. It now reports the failing step, according to the release notes. The same day’s @redocly/platform-integration 2.77.0 makes push-status and push --wait-for-deployment report why a platform deployment failed, listing the failed checks and the link checker result.
Key takeaways
- Respect 2.77.0 stops API response values and step outputs from running as code.
- A space is now required before
&&after a JSON Pointer. - Backslashes in string literals are read literally.
The take
We think teams that run respect in CI should upgrade this week. A test tool that executes what an API sends back turns the API’s output into instructions. That output is only as trustworthy as the server behind it. Upgrade, then search your Arazzo files for pointers followed directly by && and add the space. The old files may fail to parse until you do.


