Skip to content

JSONata leaks internal references in expression when using lambdas #691

Closed
@adamscybot

Description

@adamscybot

I am creating this after corresponding with @andrew-coleman over email as it has some security implications.

Currently, one can use lambdas as a way to grab references to JSONata internals. For example:

$leak_env_refs := function() {1};
$leak_env_refs.environment.bind('whatever_you_want', false);

This seems unintentional and can potentially be used maliciously.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions