Advisories for Npm/Agnai package

2024

Agnai vulnerable to Remote Code Execution via JS Upload using Directory Traversal

A vulnerability has been discovered in Agnai that permits attackers to upload arbitrary files to attacker-chosen locations on the server, including JavaScript, enabling the execution of commands within those files. This issue could result in unauthorized access, full server compromise, data leakage, and other critical security threats. This does not affect: agnai.chat installations using S3-compatible storage self-hosting that is not publicly exposed This DOES affect: publicly hosted installs without S3-compatible …

Agnai vulnerable to Relative Path Traversal in Image Upload

A vulnerability has been discovered in Agnai that permits attackers to upload image files at attacker-chosen location on the server. This issue can lead to image file uploads to unauthorized or unintended directories, including overwriting of existing images which may be used for defacement. This does not affect: agnai.chat installations using S3-compatible storage self-hosting that is not publicly exposed

Agnai File Disclosure Vulnerability: JSON via Path Traversal

A vulnerability has been discovered in Agnai that permits attackers to read arbitrary JSON files at attacker-chosen locations on the server. This issue can lead to unauthorized access to sensitive information and exposure of confidential configuration files. This only affects installations with JSON_STORAGE enabled which is intended to local/self-hosting only.