The jv_dump_term function in jq 1.5 allows remote attackers to cause a denial of service (stack consumption and application crash) via a crafted JSON file. This issue has been fixed in jq 1.6_rc1-r0.
https://github.com/stedolan/jq/
https://github.com/hashicorp/consul/issues/10263
https://github.com/NixOS/nixpkgs/pull/18908