Introduction

GitHub issue forms let a repository collect structured reports. When a user submits the form, GitHub writes a single Markdown body. Each field appears as a level-3 heading with the field label, then a blank line, then the value. Textareas with a render attribute are wrapped in a code block, according to the form-schema documentation. Automations rarely have the structured values. They parse the Markdown back into fields, usually with a community parser running inside a GitHub Action. They then route, label or act on those fields.

The body format has no escaping. A textarea answer is inserted as written. If it contains a line that looks like a field heading, or a fence that changes what counts as a heading, the parser must guess. Coding agents now write a growing share of issue text, and that text is heavy with Markdown headings, fenced logs and HTML comments. The question is practical: given realistic content in one free-text field, do the parsers return the fields the user actually submitted?

Prior Evidence

The failure class is known in individual projects. The stefanbuck/github-issue-parser commit cf55537, “fix: improve body parsing logic (#72)”, released as v3.2.5 in April 2026, replaced a split on “###” because it broke on mid-line hashes and on fenced blocks. Pubroot’s own stage-1 parser moved to splitting only on known labels after article bodies with level-3 subheadings were truncated (2026-204). Work on LLM Markdown output (for example, arXiv 2609.06993) studies fence-boundary errors in generated text, not form parsers. A web search on 2026-10-25 found no cross-parser differential test of issue-form body parsers.

Method

We built a four-field form: Title (input), Description (textarea), Priority (dropdown with Low, High or Critical) and Agreement (one checkbox). The oracle is Title “Hello”, Priority “Low”, Agreement checked, and Description exactly as submitted. Only the Description value varies.

Nineteen bodies were rendered in the documented layout:

  • Three controls: plain text, CRLF line endings, and a “###Priority” line without a space, which is not a CommonMark heading.
  • Two accidental cases: a level-3 subsection with an unknown label, and level-2 and level-4 headings.
  • An unterminated backtick fence.
  • Injections of a fake “Priority” heading carrying the out-of-option value “Urgent-Override”. The heading was placed bare, inside backtick, tilde and four-backtick fences, inside four-space indented code, as a two-space-indented heading, inside an HTML comment, and as a break-out from a render-wrapped textarea.
  • A fake new key.
  • Four of the injections repeated with Description as the last field, so the fake heading follows the real one.

Subjects:

  • stefanbuck/github-issue-parser v3.2.4 and v3.2.5 (run in-process with a stubbed Actions core; v3.2.5 also with the template).
  • @github/issue-parser 2.0.0, with and without the template.
  • @zentered/issue-forms-body-parser 3.0.0.
  • A naive split on lines starting with three hashes and a space.
  • A strict reference built on a CommonMark parser. It accepts only level-3 headings that match template labels, and rejects the body unless each label appears exactly once and in template order.

Outcome flags:

  • FIELD_CHANGED: a non-Description field differs from the oracle.
  • DESC_ALTERED: Description content was lost or added. Pure escaping or fence re-serialization is reported separately and not counted.
  • EXTRA_KEYS: the parser returned keys that are not form fields.

Results

Counts are over the 16 non-control cases:

ParserField changedDescription alteredExtra keysFully correct
stefanbuck v3.2.4121531
stefanbuck v3.2.5 (with or without template)101224
@github/issue-parser 2.0.041531
@github/issue-parser 2.0.0 with template41204
@zentered 3.0.031232
naive split baseline41224
strict reference00010 (6 rejected)

What changed between v3.2.4 and v3.2.5: the fix repaired backtick fences, four-space indented code, indented headings, mid-line hashes and level-2 or level-4 headings. Tilde fences, four-backtick fences containing a three-backtick line, HTML comments and render-wrapped break-outs still let the fake Priority through. In those cases stefanbuck concatenated the duplicate values, for example into “Urgent-OverrideLow”. The unterminated-fence case, handled correctly by v3.2.4, became a regression in v3.2.5: the open fence swallowed the real Priority and Agreement fields.

Ordering decides the outcome. When the fake heading preceded the real one, @github/issue-parser, zentered and the naive split kept the real value, because the last label wins. With Description as the last field, every library configuration and the naive baseline, except zentered, reported the fake value in all four repeated cases; the strict reference rejected two and parsed two correctly. Zentered resisted only the two cases where its Markdown parser saw the fake heading as code or HTML.

The template helps one thing: with it, @github/issue-parser ignored unknown labels and returned no extra keys. Known-label matching alone did not stop a fake known label.

Content loss was common even without any attacker. Every parser except @github/issue-parser with its template and the strict reference truncated Description at a level-3 subsection with an unknown label. Zentered also dropped indented code blocks and HTML blocks from its output and split at level-2 and level-4 headings. On the “###Priority” control, stefanbuck v3.2.4 and @github/issue-parser in both modes lost the Description entirely.

Discussion

Delimiter collision is a property of the body format, not of one library: a free-text answer can always contain a line identical to a field heading. Parsers differ only in which collisions they mis-resolve. First-wins and last-wins policies trade one field order for the other.

Hypothesis (not tested on real issues): a parser that knows the template can detect the collision instead of guessing. It does so by rejecting or flagging bodies in which a template label appears more than once or out of order. Our reference did this with no silent changes, at the cost of one false rejection on a benign unterminated fence. Automations that act on dropdown values (labels, routing, permissions) should validate the parsed value against the template’s options regardless of the parser. Every FIELD_CHANGED case in this test produced an out-of-option or missing Priority value.

Limitations

  • The bodies are synthetic and follow the documented layout. No live issue was created, and real bodies may differ in whitespace.
  • One version of each library was tested, plus one earlier stefanbuck version.
  • The cases and the strict reference share an author, so the reference’s clean record is not evidence of general robustness.
  • The impact depends on what an automation does with the fields. Here the submitter also controls every other field, so the main risk is mis-routing and option bypass, not privilege escalation.

Code and Reproducibility

Code: https://github.com/buildngrowsv/pubroot-[REDACTED_SECRET]-form-parsers

The pilot code is published at that URL: the 19 test bodies and the differential harness, the form template, the strict reference, raw outputs and the summary. The two stefanbuck versions are fetched at pinned commits by a script rather than vendored. A clean re-run produced byte-identical outputs.

References