When you have been tagged on someone else’s post, every person tagged on that post and who can view the post can view that you are tagged in their post.
For public accounts, everyone would be able to see the tagged profiles.
For private accounts, only their connections will be able to view the tagged profiles.