r/Wordpress • • 3d ago

ReactPress Plugin

Hi, I’m using ReactPress plugin to deploy my React files on my website.

Currently, JetPack flagged ReactPress as a security risk. JetPack is actually referring to an older version though. (So it shouldn’t flag the latest version as a security risk?)

Is there an idiot-proof way to stop relying on ReactPress? I don’t dare to do too much backend work as I collapsed my website once :/

2 Upvotes

17 comments sorted by

4

u/Frank_MakesIt 3d ago

The idiot-proof route is to keep the React app out of WordPress completely. Make a subdomain called app in your hosting panel, upload the files from your build folder into it, and link to it from your menu.

1

u/Upper-Cartoonist9802 2d ago

Ah, thanks for the advice!

I'll research on this :)

3

u/Most_Discipline_9882 2d ago

the subdomain setup only gets annoying if the app needs to share login state with the main site, otherwise its way cleaner.

2

u/WPFixFast Developer 2d ago

Which version of ReactPress are you using?
According to patchstack, 3.4.0 has an XSS vulnerability, but it is patched on 3.4.1
JetPack could be lagging behind to flag that issue.

https://patchstack.com/database/wordpress/plugin/reactpress/vulnerability/wordpress-reactpress-create-react-app-for-wordpress-plugin-3-4-0-authenticated-subscriber-stored-cross-site-scripting-vulnerability

1

u/Upper-Cartoonist9802 2d ago

I’m using 3.4.2

Does it mean that my website is safe?

Thank you!

2

u/WPFixFast Developer 2d ago

Yes, according to the plugin's change log, that vulnerability (CVE-2026-92712) is patched.
See here:

https://wordpress.org/plugins/reactpress/#developers

3.4.1

  • Security fix for CVE-2026-92712. Admin AJAX requests now require an administrator and a valid nonce.

1

u/desmond477 2d ago

moving the React build onto a subdomain and linking it from your WP menu is definitely the safest way to ditch ReactPress without risking your main site. The main thing to watch out for when decoupling it is making sure your routing and any WordPress connections don't break once the plugin is deactivated. Does your React app pull data or user logins from WordPress, or is it completely standalone?

1

u/Upper-Cartoonist9802 2d ago

It doesn't put data or user logins, it's completely standalone...

Is there anything else we can look out for?

Thank you!

1

u/desmond477 2d ago

since it’s completely standalone, that makes things way safer, you don’t have to touch the WordPress database at all.

the main things to watch out for when moving off ReactPress are broken internal links once the files leave WordPress and having a clean rollback snapshot before disabling the plugin so nothing takes your main site down again. shot you a quick DM as well.

1

u/KnowledgeJolly9784 2d ago

If the warning points at an older version and you're on the latest, it's most likely a stale flag and you can dismiss it. The low risk way off ReactPress is to run npm run build, upload the build folder to something like /wp-content/react-app/, and load it with a few lines in a child theme or a snippets plugin that enqueue the JS and CSS on that one page. Take a full backup first (UpdraftPlus is fine) and try it on a staging copy so you can't break the live site again.

0

u/[deleted] 3d ago

[removed] — view removed comment

0

u/Wordpress-ModTeam 2d ago

Content that is purely generative AI is not always helpful.