release-bump --date is documented but never validated #142

Closed
opened 2026-08-15 14:33:42 +00:00 by john · 1 comment
Owner

Source: deep dive F15
Verdict: AGREE - low

Claim as reviewed

The CLI documents --date <YYYY-MM-DD> but bump accepts any truthy string and inserts it directly into the changelog heading, so newlines or Markdown can corrupt the generated section.

At HEAD f354864 (v3.3.0)

cadence-core/bin/release-bump.mjs:102 - const date = dateArg || new Date().toISOString().slice(0, 10); with no shape check. The value reaches the heading at cadence-core/bin/lib/release-decision.mjs:254 - const heading = `## [${version}] - ${date}\n\n`;.

Note

Local operator input only, so the exposure is a corrupted changelog rather than an injection. Reject anything that is not a round-tripping calendar date before any file is written.

**Source:** deep dive F15 **Verdict:** AGREE - low ### Claim as reviewed The CLI documents `--date <YYYY-MM-DD>` but `bump` accepts any truthy string and inserts it directly into the changelog heading, so newlines or Markdown can corrupt the generated section. ### At HEAD f354864 (v3.3.0) `cadence-core/bin/release-bump.mjs:102` - `const date = dateArg || new Date().toISOString().slice(0, 10);` with no shape check. The value reaches the heading at `cadence-core/bin/lib/release-decision.mjs:254` - `` const heading = `## [${version}] - ${date}\n\n`; ``. ### Note Local operator input only, so the exposure is a corrupted changelog rather than an injection. Reject anything that is not a round-tripping calendar date before any file is written.
john added this to the v3.5.4 milestone 2026-08-15 15:09:28 +00:00
john modified the milestone from v3.5.4 to v3.5.5 2026-08-18 10:23:29 +00:00
Author
Owner

Closed by v3.5.5 (ARG-02, verified against the shipped tree).

Closed by v3.5.5 (ARG-02, verified against the shipped tree).
john closed this issue 2026-08-19 20:59:56 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: crenshawdev/cadence-archived#142
No description provided.