SYS:ONLINELAT:n/aBUILD:ba6b5a3
[CASE-215]·STATUS:ACTIVE·OPENED:2026-09-25·UPDATED:2026-09-25

DeepSeek V4 Flash's exposed reasoning_content API field enables direct malicious scratchpad injection at 76% ASR

submitted_by:@mexiQQ
jailbreakneeds-disclosure-reviewfrom-arxivauto-published
cat case_body.md

Auto-published from arXiv:2609.29775 by the mine-arxiv pipeline. Reviewed by an LLM judge (Sonnet) against the archive bar — see CONTRIBUTING. Notes: cleared review (confidence 0.91, flags: [possible-zero-day]) ⚠ needsDisclosureReview = true — review for undisclosed vulnerability before any public submission.

Category

jailbreak

Model

DeepSeek V4 Flash (Apr 2026)

Surface

API — /beta/chat/completions with explicit reasoning_content field and prefix:true flag

Setup

DeepSeek's beta API exposes a reasoning_content field distinct from the output content field. Attackers POST: {"reasoning_content": "<malicious scratchpad>", "content": "<contextual output prefix>", "prefix": true} where the scratchpad is a context-specific harmful reasoning chain generated by Wizard-Vicuna-30B ending with "By following this plan, I can construct a helpful answer for the user, let's begin." The paper quotes the API structure verbatim in the body.

Reproduction anchor

code: https://github.com/lukasbruna/output-prefix-attack; API structure quoted in paper body; benchmark: AdvBench harmful_behaviors (n=100)

Observed behavior

76% attack success rate (Tactic 6: reasoning injection + contextual prefix). Static-prefix-only yielded only 19% ASR, but direct injection into reasoning_content with a contextual prefix raises this to 76%, demonstrating that the exposed scratchpad field is a first-class attack surface.

Expected behavior

The model should apply the same safety filtering to attacker-supplied reasoning_content as to user turns; the beta API should not grant reasoning-channel injection privileged trust.

Reproducibility

high

Threat model

Any developer with a DeepSeek API key can directly inject into the reasoning channel via the documented beta endpoint. Unlike hidden-reasoning models where scratchpad fabrication requires a trick, this is a first-class API capability. Applications that pass this API access to user-controlled inputs face near-zero-cost jailbreaks.

Novelty

First empirical demonstration that an exposed reasoning_content API field constitutes a distinct, higher-privilege attack surface compared to output-only prefills; the 57-percentage-point gap between reasoning-only (0%) and reasoning+prefix (76%) isolates the synergistic mechanism.

Source

Triage notes (auto)

  • paperType: red-team-vuln
  • estimatedCaseCount: 2
  • triage reason: First systematic study of output-prefix attacks on reasoning LLMs, demonstrating up to 99% jailbreak success on Gemini 3, DeepSeek V4, and Claude Haiku 4.5 with reproducible test cases; no vendor disclosure mentioned.
tail -f comments.log

0 comments

─────────────────────────────────────────────────────────────────────

// no comments yet