Preheat your oven to 400°F (200°C).
Roll out the puff pastry on a lightly floured surface.
Cut the pastry into squares, about 3 inches by 3 inches.
Place a cube of brie and a spoonful of cranberry sauce on each square.
Sprinkle with fresh rosemary, salt, and pepper before folding the pastry.
Fold the corners of the pastry over the filling and pinch to seal.
Brush the tops with beaten egg for a golden finish.
Place the bites on a baking sheet lined with parchment paper.
Bake in the preheated oven for 15-20 minutes or until golden brown.
Remove from the oven and let cool for a few minutes before serving.