You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Sanitize advisory data in vulnerable functions output OD-296
External OSV advisory strings (function names, advisory ID) were printed
raw, letting a crafted advisory smuggle terminal control sequences
(CWE-150); route them through sanitizeText() like other repo-derived
output. Also gate the vulnerable-functions line on a non-empty list and
split printFindingCard into two helpers to stay under the line-count
limit, and add the missing test for advisory-block suppression when a
finding has a linked issue.
Sanitize vulnerable/affected function names and the advisory ID (`CommitIssue.advisoryInformation` / `SrmItem.advisoryInformation`) before printing them in `issue`, `issues`, `pull-request --issue`, `finding`, and `findings`. These values come from the linked OSV advisory, so — like other repository-derived output — they are now passed through `sanitizeText()` to strip ANSI/OSC control bytes (CWE-150) instead of being printed raw.
0 commit comments