Diego Rodrigues de Sa e Souza
948d2d7f21
fix(security): explicit http(s) scheme allowlist in linkifyText href
...
CodeQL flagged the <a href> in LinkifiedText (#5486 ) with js/xss (high)
and js/client-side-unvalidated-url-redirection (medium) because href
traces back to user-provided text. URL_RE already requires an http(s)://
prefix, so a javascript:/data: scheme can never reach href — but that
guarantee was only implied by the regex. Validate the scheme explicitly
via new URL().protocol before exposing href (non-http(s) degrades to
plain text): defense-in-depth that also makes the sink provably safe to
static analysis. Regression test added.
2026-07-01 13:10:49 -03:00
..
2026-06-29 16:51:03 -03:00
2026-06-20 14:55:24 -03:00
2026-06-06 19:13:11 -03:00
2026-06-29 16:51:03 -03:00
2026-06-30 23:45:29 -03:00
2026-02-18 11:34:05 -03:00
2026-05-17 11:30:49 -03:00
2026-06-26 02:51:06 -03:00
2026-06-30 10:42:16 -03:00
2026-05-02 00:48:54 -03:00
2026-06-26 02:51:06 -03:00
2026-04-21 04:36:16 -03:00
2026-02-18 00:02:15 -03:00
2026-06-19 06:49:01 -03:00
2026-05-26 23:51:47 -03:00
2026-06-20 14:55:24 -03:00
2026-04-27 07:16:24 -03:00
2026-04-30 14:08:50 -03:00
2026-06-30 06:54:29 -03:00
2026-06-21 08:56:51 -03:00
2026-06-07 07:20:02 -03:00
2026-06-05 11:52:27 -03:00
2026-06-29 16:51:03 -03:00
2026-06-19 06:49:01 -03:00
2026-02-18 00:02:15 -03:00
2026-06-30 14:50:48 -03:00
2026-07-01 13:10:49 -03:00
2026-06-30 06:54:29 -03:00
2026-06-19 06:49:01 -03:00
2026-06-11 18:52:29 -03:00
2026-06-30 06:54:29 -03:00
2026-04-12 18:43:19 -03:00
2026-06-25 13:17:40 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00
2026-05-03 16:17:38 -03:00
2026-05-31 09:34:16 -03:00
2026-05-10 18:33:20 -03:00
2026-03-30 17:07:46 -04:00
2026-06-25 13:17:40 -03:00
2026-04-28 20:46:25 -03:00
2026-04-16 05:26:17 -03:00
2026-04-30 14:08:50 -03:00
2026-06-29 16:51:03 -03:00
2026-04-09 15:55:59 -03:00
2026-06-14 01:10:24 -03:00
2026-04-16 05:26:17 -03:00
2026-06-21 08:56:51 -03:00
2026-05-26 23:51:47 -03:00
2026-06-21 08:56:51 -03:00
2026-04-13 17:39:45 -03:00
2026-02-18 14:51:15 -03:00
2026-06-17 19:26:32 -03:00
2026-06-17 19:26:32 -03:00
2026-06-03 18:58:01 -03:00
2026-05-26 23:51:47 -03:00