Skip to content

Harden HTML link generation and SQL identifiers - #5481

Closed
shodadio wants to merge 1 commit into
Ranchero-Software:mainfrom
shodadio:shodadio-security-audit
Closed

shodadio wants to merge 1 commit into
Ranchero-Software:mainfrom
shodadio:shodadio-security-audit

Conversation

@shodadio

Copy link
Copy Markdown

Feed and author metadata can be untrusted, so interpolating it into generated HTML risks injection. This hardens generated links by escaping text and attributes and allowing only HTTP, HTTPS, and mailto schemes. Feed settings updates now also validate interpolated SQL column identifiers against the defined columns.

Adds regression coverage for escaped HTML, rejected JavaScript URLs, and accepted mailto links. Targeted Swift tests could not be run because the installed Swift Package Manager aborts with a BuildServerProtocol dynamic library mismatch.

Escape HTML link text and attributes and reject unsafe URL schemes. Restrict interpolated feed-settings SQL identifiers to known columns, with regression coverage for HTML injection.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@shodadio shodadio closed this Oct 11, 2026
@brentsimmons

Copy link
Copy Markdown
Collaborator

Why closed?

@shodadio

Copy link
Copy Markdown
Author

I'm one of those hapless vibe coders you probably hate. Unintentional. Apols.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants