r/Wordpress • u/Upper-Cartoonist9802 • 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
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.
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/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/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