How to get remote page with php cURL securely

I will have an app where I will prompt users for a URL (with proper regex url validation) and return the page with cURL and run some checks on it.What would be the most secure way of returning a remote webpage securely with cURL? As I understand even cURL has some vulnerabilities, like 'safe mode' Security Bypass (http://www.securityfocus.com/bid/27413).
 
Back
Top