-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Upgrade to Bleach 1.5, to limit link schemes to an allowlist #2860
Comments
It looks like we're already using v2: Line 963 in 6ff99e3
And we just have a slightly broader version defined in Line 144 in 6ff99e3
Can we bump the minimum version to 1.5 to make the proposed change? What determines our minimums? Do we just ask our packagers? |
The bit of the lockfile you quoted refers to the dependencies of the Lines 83 to 89 in 6ff99e3
but it might be easier to spot this by looking at the locked checksums: Lines 1618 to 1621 in 6ff99e3
A note of caution: the lockfile only describes the contents of
It doesn't cover:
Pretty much. I sometimes use pkgs.org as a santiy check too, e.g. here and here. |
The packagers don't seem to have any objections. If anyone wants to pick this up, the steps are:
|
The 1.5 version of Bleach made the allowed protocols configurable: http://bleach.readthedocs.io/en/latest/clean.html#allowed-protocols-protocols
Once the dependency is updated, the
safe_markup
function in the mailer can be updated and these lines can be uncommented:synapse/synapse/push/mailer.py
Lines 76 to 77 in 42b5048
The text was updated successfully, but these errors were encountered: