Define $Q(x,y) \subseteq \mathbb{R}^2$ as a square (including interior points) in $\mathbb{R}^2$ with side length $1$, sides parallel to the $x$- and $y$-axes and center at $(x,y)$.
Case 1: Let $X,Y: \Omega \rightarrow \mathbb{R}$ be real-valued continuous random variables with joint distribution function $ f_{X,Y}(x,y) = 1/2 $ for $ (x,y) \in Q(1/2,1/2) \ \cup Q(3/2,3/2) $ and $f_{X,Y}(x,y) = 0$ otherwise. Then the individual densitiy of $X$ is $f_{X} = 1/2 $ for $x \in [0,2] $ and $f_{X} = 0$ otherwise. The individual densitiy of $Y$ is $f_{Y} = 1/2 $ for $y \in [0,2] $ and $f_{Y} = 0$ otherwise. $X$ and $Y$ are not independent.
Case 2: Let $X,Y: \Omega \rightarrow \mathbb{R}$ be real-valued continuous random variables with joint distribution function $ f_{X,Y}(x,y) = 1/2 $ for $ (x,y) \in Q(1/2,3/2) \ \cup Q(3/2,1/2) $ and $f_{X,Y}(x,y) = 0$ otherwise. Then the individual densitiy of $X$ is $f_{X} = 1/2 $ for $x \in [0,2] $ and $f_{X} = 0$ otherwise. The individual densitiy of $Y$ is $f_{Y} = 1/2 $ for $y \in [0,2] $ and $f_{Y} = 0$ otherwise. $X$ and $Y$ are not independent.
The above two cases show, that the individual densities of two random variables are not enough to determine the joint densitiy, since in both cases you have the same individual densities but different joint density.