Does net force acting on a body always depends on the mass and acceleration of the body? Suppose only electrostatic force acts between two body then net force is equl to the electrostatic force, but there is no mass in electrostatic force formula.
According to Newtonian mechanics, your statement does hold true, but not always. I will explain a few cases here:
In the case of Electrostatic attraction or repulsion, the formula you've given for force is valid, but at the same time, this can be equated to the mass of any of the charges times the acceleration of that particular charge, under the influence of the Electrostatic force of attraction or repulsion.
In another case, suppose a balloon is being deflated and air moves out of it with a constant velocity. In this case the net instantaneous force on it will be equal to the product of the given velocity and the rate of change of mass, at that instant.
In the derivation of the expression of force using basic calculus, we get this formula:
F = (delta)(mv)
Since in most cases, the mass remains constant, we take it out of the bracket and write F = m(delta)(v)
Thus, f = ma is always valid, if the mass remains constant, as is your case of the attraction/repulsion of the two charges.