Skip to content

Security Independently confirmed2 publishers 2 min read Published Updated

Manus agent ran attacker JavaScript from an email it had already flagged as suspicious

Salt Labs got the Manus AI agent to run attacker JavaScript server-side with a JSFuck-encoded prompt hidden in an email the agent had flagged. Detection fired and the code still ran, so agents connected to outside services need limits on what their code can reach.

The Watch · Security desk

Send a correction

Illustration accompanying Manus agent ran attacker JavaScript from an email it had already flagged as suspicious
Generated illustration

What happened

  • SC World describes the result as a security boundary violation in which untrusted email content was turned into executable code.
  • SC World's brief argues prompt inspection is necessary but not sufficient, and that controls must cover the actions an agent takes across its tools, APIs and systems.
  • Tech Radar first disclosed the research, and SC World's brief summarizes that report.

Why it matters

  • Who's exposed exposure Agents that read inbound email take input from outside senders, and here a single message was enough to get attacker code running in the vendor's server-side environment.
  • Who has to decide decision Teams deploying agents with third-party access have to decide what agent-run code may reach on the host, because input screening that recognized this attack did not stop it.
  • What it sets up precedent SC World expects attack methods beyond JSFuck, so a fix aimed at one encoding would not stop the next encoding from being flagged and still executed.

Manus's protections fired first. They flagged the email carrying Salt Labs' hidden prompt as suspicious [3][6]. According to SC World, the agent then decoded the JSFuck payload and ran it as arbitrary JavaScript in its server-side environment before its security mechanisms could fully intervene [4]. The agent did the decoding itself. It turned the obfuscated text back into working code and then executed it [4].

The order of events changes the diagnosis. When a filter misses an encoding, a better signature can fix it. This filter recognized the input, and the payload still ran on the server [6][4].

SC World's brief names the researcher, the agent, the encoding and the delivery method [1][2][3]. It leaves out disclosure and patch dates, what the server-side environment could reach, any use of the technique outside the research, and any threat actor or campaign. On that record, this is a researcher finding that was handled through Meta's bug bounty program [7].

The exposure that remains after the patch applies to agents of this kind generally. SC World places the case within the ongoing risk from AI agents granted broad access to third-party services [10]. It also expects creative attack methods beyond JSFuck [11]. A rule written for JSFuck covers this payload only, and with a different encoding the filter could again flag the email while the agent still ran the code [6][11].

In this chain, the action that mattered was the agent executing server-side JavaScript it had decoded from untrusted mail [4]. The control that would have contained it is a limit on what agent-run code can reach, enforced whether or not the input filter raises a flag. The brief's own remedy, monitoring and controlling what the agent does, applies at that same point [9].

What to watch

  • Salt Labs or Meta publishing dates, the permissions of the Manus server-side environment, and what the executed JavaScript could reach.
  • Whether the same encode-then-decode approach succeeds against other agents that process email or other third-party content.
  • Any report of the technique being used against Manus users outside the research.

Clarity's read

What the record supports and how the coverage leans. The claims behind it follow.

Reality

Evidence40
Adoption
Not scored
Hype gap+15
Incentives55
Confidence45
Why these scores

Claim ledger

Ranked by verification strength, evidence, and original report placement.

  1. [1]

    Salt Labs researchers bypassed the prompt-injection protections of the AI agent Manus and achieved code execution.

    Reported SupportedView cited source
  2. [2]

    The researchers used JSFuck, described by SC World as an unusual JavaScript obfuscation method.

    Reported SupportedView cited source
  3. [3]

    The researchers embedded a hidden prompt within an email.

    Reported SupportedView cited source
  4. [4]

    With the malicious prompt encoded in JSFuck, the agent was tricked into decoding and executing arbitrary JavaScript within its server-side environment before any security mechanisms could fully intervene.

    Reported SupportedView cited source
  5. [5]

    SC World describes the result as a critical security boundary violation in which untrusted email content was transformed into executable code.

    Reported SupportedView cited source
  6. [6]

    Manus initially flagged the email containing the hidden prompt as suspicious.

    Reported SupportedView cited source
  7. [7]

    The specific flaw has since been patched by Meta through its bug bounty program.

    Reported SupportedView cited source
  8. [8]

    Tech Radar disclosed the research; SC World's brief cites Tech Radar as its source.

    Reported SupportedView cited source
  9. [9]

    SC World's brief says prompt inspection is necessary but not sufficient, and that security must extend to monitoring and controlling the actions an AI agent takes across all the tools, APIs and systems it can access.

    Reported SupportedView cited source
  10. [10]

    SC World says the vulnerability highlights ongoing risks associated with AI agents granted broad access to third-party services, even after initial security measures are in place.

    Reported SupportedView cited source
  11. [11]

    SC World's brief says creative attack methods beyond JSFuck are likely to emerge.

    Reported InsufficientView cited source

Sources

2 independent publishers whose own reporting we read for this story.

  1. dev.to

    1 article · October 4, 2026

    JSFuck in Your Inbox: How an Old JS Obfuscation Trick Beat an AI Agent's Guardrails
  2. scworld.com

    1 article · October 3, 2026

    Researchers bypass AI agent protections with JavaScript obfuscation

Topics and entities

Topics