Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

refactor(changesest): mention ghsa and credit reporter (#997)

Corentin Thomasset7d22a3151112
diff --git a/.changeset/gentle-women-drop.md b/.changeset/gentle-women-drop.md
index 1c2aeb32..7c07cde8 100644
--- a/.changeset/gentle-women-drop.md
+++ b/.changeset/gentle-women-drop.md
@@ -2,4 +2,6 @@
"@papra/app": patch
---
-Removed unused placeholder fields in the API key creation endpoint to avoid confusions.
\ No newline at end of file
+Removed currently unused `expiresAt` placeholder fields in the internal API key creation endpoint to avoid confusions, as non-ui (so non-standard) creation of API keys can set an expiration date, which is not currently enforced by the system.
+
+Addressing [GHSA-866c-mc22-wvv5](https://github.com/papra-hq/papra/security/advisories/GHSA-866c-mc22-wvv5), credit to [@Toothless5143](https://github.com/Toothless5143) for the responsible disclosure.
\ No newline at end of file
diff --git a/.changeset/little-onions-grin.md b/.changeset/little-onions-grin.md
index 152f7359..dbc563b0 100644
--- a/.changeset/little-onions-grin.md
+++ b/.changeset/little-onions-grin.md
@@ -2,9 +2,14 @@
"@papra/app": patch
---
-Added SSRF protection for webhook URLs. Webhook URLs are now validated to ensure they do not point to private or reserved IP addresses, preventing potential server-side request forgery attacks.
+**Breaking change regarding webhook URLs**
+
+Added SSRF protection for webhook URLs. Webhook URLs are now validated to ensure they do not point to private or reserved IP addresses, preventing potential server-side request forgery attacks.
+So webhooks pointing to private IPs (e.g. `http://192.168.0.1/some/stuff`), or with domains resolving to private IPs (e.g. `http://myservice.local/some/stuff`) will be blocked unless explicitly allowed.
Two new configuration options are available:
- `WEBHOOK_SSRF_PROTECTION_ENABLED` Set to `false` to fully disable SSRF protection. This is not recommended, prefer using the allowlist below instead.
- `WEBHOOK_URL_ALLOWED_HOSTNAMES` A comma-separated list of hostnames (IP addresses or domain names) that are explicitly trusted and exempt from SSRF checks (e.g. internal services you control).
+
+Addressing [GHSA-cjw7-qg95-58mq](https://github.com/papra-hq/papra/security/advisories/GHSA-cjw7-qg95-58mq), credit to [@Toothless5143](https://github.com/Toothless5143) for the responsible disclosure.
\ No newline at end of file
diff --git a/.changeset/true-queens-exist.md b/.changeset/true-queens-exist.md
index aef4c0d0..0bcb8ba0 100644
--- a/.changeset/true-queens-exist.md
+++ b/.changeset/true-queens-exist.md
@@ -3,3 +3,5 @@
---
Properly sanitize user name before including it in the email content to prevent potential XSS or html injection attacks.
+
+Addressing [GHSA-6f8x-2rc9-vgh4](https://github.com/papra-hq/papra/security/advisories/GHSA-6f8x-2rc9-vgh4), credit to [@Toothless5143](https://github.com/Toothless5143) for the responsible disclosure.
\ No newline at end of file
diff --git a/.changeset/wise-pugs-add.md b/.changeset/wise-pugs-add.md
index daa4fc06..48136a9e 100644
--- a/.changeset/wise-pugs-add.md
+++ b/.changeset/wise-pugs-add.md
@@ -2,7 +2,7 @@
"@papra/app": patch
---
-Switched the app configuration validation library to `valibot`. Config validation is now a bit stricter, with slightly different error messages.
+App environment configuration validation is now a bit stricter, with slightly different error messages. And the following specific changes:
- Boolean env variables previously considered non-truthy values as `false`. Now they will throw a validation error if the value is not a valid boolean-ish value
- `AUTH_PROVIDERS_CUSTOMS` json parsing now accepts only valid boolean values for the `pkce` property, while before it accepted any non-true value as `false`