How to pass data from page to widget functions?

It should be possible to read the global $post variable in your widget function. This will contain all information about the post (or page) displayed on the current page.