I am using node.js and express4
In my app, users can write posts and give them a title. I will generate an unique ID for each post.
One can then access to a post via the url : domain/posts/ID-of-the-post/title-of-the-post Server-side, after parsing the url, I only use the ID of the post to correctly query my database. I never use the title of the post from the url because I get it safely from my database.
So basically, the url domain/posts/A-valid-ID-of-a-post/ANYTHING points to the page of a post.
My question is: is this dangerous? can some attacker take advantage of this? If yes, how can I protect myself?
Note: I am protected against html injection so my question is only about the URL.