IMPORTANT
Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)
Explain the Problem
I have a local feed, served by the same webserver which also serves Nextcloud. This local .xml was added to NC News months ago and was working completely fine. For quite a while (days to few weeks roughly, error indicator in NC News shows/counts "371") it does not update. When trying to add this local feed again, the same error message appears as when hovering the already embedded feeds' error counter:
Local server access is not allowed: Host "xxx.xxx.xxx.xxx" (my.public-nextcloud.address:80) violates local access rules
Bitte für weitere Informationen data/nextcloud.log kontrollieren!
The main/ultimate/very first question from my point of view is, if NC News or Nextcloud in general now somehow enforces this SSRF protection. I can not track down when this issue started so I could sort out if it was a NC News app, Nextcloud or even components (PHP-FPM, webserver etc.) update which introduced this.
--> Update:
Please note: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#allow-local-remote-servers is NOT set. Never was and I don't plan to work around this issue using this config setting (because security).
--> Update: For real quick test purposes I can confirm that enabling this config setting makes the error disappear. Strangely after disabling it, everything seems to continue to work without errors in terms of feed updates as the error counter does not increase yet (probably a caching issue, did not restart PHP-FPM after disabling the config setting again), but trying to add the feed again immediately triggers the error again.
Steps to Reproduce
Explain what you did to encounter the issue
- Create or host a valid RSS feed on the same server that runs Nextcloud.
- Protect the RSS file using HTTP Basic Authentication.
- Use a public FQDN (e.g. https://user:password@my.public-nextcloud.address/path/feed.xml) when adding the feed to News.
- Configure local DNS so that the public FQDN resolves to the server's internal RFC1918 address (split DNS / DNS override).
- Try to add the feed to NC News.
System Information
- News app version: 28.4.1
- Nextcloud version: 33.0.3.2
- Cron type: (system cron/python updater/...) system cron, for NC News dedicated "nextcloud-news-updater"
- PHP version: 8.4.21
- Database and version: mariadb Ver 15.1 Distrib 10.11.14-MariaDB
- Browser and version: Several, the error is not client but server related
- OS and version: Several, the error is not client but server related
Contents of nextcloud/data/nextcloud.log
[news] Warnung: http://username:password@my.public-nextcloud.address/path/feed.xml read error : Local server access is not allowed: Host "xxx.xxx.xxx.xxx" (my.public-nextcloud.address:80) violates local access rules
POST /index.php/feeds
von xxx.xxx.xxx.xxx von User um 02.06.2026, 00:02:36
Contents of Browser Error Console
Read http://ggnome.com/wiki/Using_The_Browser_Error_Console if you are unsure what to put here
IMPORTANT
Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)
Explain the Problem
I have a local feed, served by the same webserver which also serves Nextcloud. This local .xml was added to NC News months ago and was working completely fine. For quite a while (days to few weeks roughly, error indicator in NC News shows/counts "371") it does not update. When trying to add this local feed again, the same error message appears as when hovering the already embedded feeds' error counter:
The main/ultimate/very first question from my point of view is, if NC News or Nextcloud in general now somehow enforces this SSRF protection. I can not track down when this issue started so I could sort out if it was a NC News app, Nextcloud or even components (PHP-FPM, webserver etc.) update which introduced this.
--> Update:
Please note: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#allow-local-remote-servers is NOT set. Never was and I don't plan to work around this issue using this config setting (because security).
--> Update: For real quick test purposes I can confirm that enabling this config setting makes the error disappear. Strangely after disabling it, everything seems to continue to work without errors in terms of feed updates as the error counter does not increase yet (probably a caching issue, did not restart PHP-FPM after disabling the config setting again), but trying to add the feed again immediately triggers the error again.
Steps to Reproduce
Explain what you did to encounter the issue
System Information
Contents of nextcloud/data/nextcloud.log
Contents of Browser Error Console
Read http://ggnome.com/wiki/Using_The_Browser_Error_Console if you are unsure what to put here