xhs-cli
Fail
Audited by Snyk on Mar 16, 2026
Risk Level: HIGH
Full Analysis
HIGH W007: Insecure credential handling detected in skill instructions.
- Insecure credential handling detected (high risk: 1.00). The skill's example commands require passing an xsec_token (a session/auth token) and note_id as literal command-line arguments (and instruct obtaining tokens from search results), which forces the agent to handle and potentially output secret token values verbatim—an exfiltration risk.
MEDIUM W011: Third-party content exposure detected (indirect prompt injection risk).
- Third-party content exposure detected (high risk: 0.90). The skill automatically navigates and scrapes public Xiaohongshu pages (see xhs_sign.navigate_search_page -> https://www.xiaohongshu.com/search_result, navigate_note_page -> https://www.xiaohongshu.com/explore/{note_id}, and navigate_user_posted -> https://www.xiaohongshu.com/user/profile/{user_id}) and ingests user-generated notes and comments which the agent reads and uses to drive searches, analyses, and follow-up actions.
MEDIUM W012: Unverifiable external dependency detected (runtime URL that controls agent).
- Potentially malicious external URL detected (high risk: 0.90). The skill navigates at runtime to https://www.xiaohongshu.com (and related domains like https://creator.xiaohongshu.com and https://edith.xiaohongshu.com) and directly executes remote page JavaScript (e.g., calling window._webmsxyw via page.evaluate in xhs_sign.sign) and consumes intercepted API responses, so it relies on and runs remote site code to function.
Issues (3)
W007
HIGHInsecure credential handling detected in skill instructions.
W011
MEDIUMThird-party content exposure detected (indirect prompt injection risk).
W012
MEDIUMUnverifiable external dependency detected (runtime URL that controls agent).
Audit Metadata